to system() or fork()/exec()?

There appear to be two common ways of running an external executable from C in unix, the system() call and pid = fork() switch(pid) //switch statement based on return value of pid, //one branch of which will include and exec() command Is there any reason to prefer a fork/exec over system in the case where … Read more

Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies

My app is quit big and using many jars and tools. Platform – windows 2008 server, Spring , hibernate, Quarts, mysql, tomcat-7.35 When I deploy and start the server first time working perfectly, but If I restart I am getting the below err SEVERE: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/TestProject]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at … Read more

Where does Windows Store apps stores its local settings?

Hello fellow programmers, I am new to Windows 8. Where does Windows Store app’s LocalSettings store its serialized file ? I am referring to this one: Windows.Storage.ApplicationData.Current.LocalSettings Per WinStore app tutorial here, I can load and save serialized properties to either roaming settings or local settings. The roaming goes to the cloud, but where exactly … Read more

IntelliJ does not recognize PATH variable

I recently tried to import an existing Gradle project, using the option “Open Project” in the startup window and the existing build.gradle file to automatically set-up the project. Right after I did this, an error message appeared in IntelliJ, saying: Could not fetch model of type ‘BasicIdeaProject’ using Gradle installation ‘/Users/myUser/Tools/gradle-1.3’. Build file ‘/Users/myUser/IdeaProjects/myProject/database/build.gradle’ line: … Read more

what is process and update and how it works in primefaces [duplicate]

This question already has answers here: Understanding PrimeFaces process/update and JSF f:ajax execute/render attributes (4 answers) Closed 5 years ago. Can you differentiate process and update.Since am new to JSF am little confused where to use.unnecessary use causing issue in my Application. Answer process in primefaces equals to execute in JSF process : Determines id’s … Read more

com.microsoft.sqlserver.jdbc.SQLServerDriver not found error

I am trying to connect to my SQL Server 2008 database from Java and I’m having the same problem from this thread. String userName = “xxxx”; String password = “xxxx”; String url = “jdbc:sqlserver:xxx.xxx.xxx.xxx;databaseName=asdfzxcvqwer;integratedSecurity=true”; Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver”); connection = DriverManager.getConnection(url, userName, password); I keep getting a ClassNotFoundException Whenever I try to load the driver from Class.forName(“com.microsoft.sqlserver.jdbc.SQLServerDriver”); java.lang.ClassNotFoundException: … Read more