com.ten60.netkernel.util.NetKernelException on startup

Poster Content
nk4um User
Posts: 7
November 22, 2007 19:08Java 6 u3 issue on Windows
Reinstalled under c:\\java\\  not the default c:\\program files\\ and the problem goes away.

- Peace
nk4um User
Posts: 7
November 22, 2007 00:45Same Error under Java 6 u3
May be an issue with Java 6 u3, I''ve tried this code and it fails:

Runtime.getRuntime().exec("javac");

The system cannot find the file specified - is the error message.

At the comand line I can call javac and it finds javac so the path is set, but calling java JC (the class with the above line) fails.

I don''t think this is a NetKernel issue, but if someone has an answer I''d love to know.

- Peace
nk4um User
Posts: 15
November 14, 2007 15:34Update on fix
Oops ... looks like I made a mistake earlier ... it wasn''t the JAVA_HOME as reported earlier, but the PATH environment variable that was key to success.

I ran into this problem again after upgrading to the latest version of JDK 1.6.03 and NetKernel 3.3.
nk4um User
Posts: 15
August 4, 2007 19:13Thanks
Hi,

Thanks, problem solved ... I was using a JDK however it was neither in my path nor did I have a JAVA_HOME set.

I set JAVA_HOME and it now starts without a problem.

Thanks again, Marek.
nk4um Moderator
Posts: 485
July 27, 2007 14:41No javac available
Hi Marek,

this error message appears when no javac can be found. Javac is used by the dynamic compilation facility. If it is not found then there is no harm. It is just that you won''t get that functionality.

Possible reasons for it not being found are:
1) using the JRE rather than JDK
2) not having the JAVA_HOME env. variable setup or the JDK bin directory in your path.

Cheers,
Tony
nk4um User
Posts: 15
July 25, 2007 11:38com.ten60.netkernel.util.NetKernelException on startup
Hi,

I receive the following error on start-up of the NetKernel 3.2.

On this machine I have Windows XP SP2 installed with Java JDK 6u2 installed.

Any ideas what might be causing this?

Thanks, Marek.

PS. I haven''t done much testing but it seems to run fine. I can launch both the 1060 and 8080 pages without problems and navigate around them.
<ex>
<id>com.ten60.netkernel.util.NetKernelException</id>
<message>Failed to initiate compiler</message>
<stack>
  <level>com.ten60.netkernel.dcp.ModuleState.compile() line:241</level>
  <level>com.ten60.netkernel.dcp.ModuleState.&lt;init&gt;() line:111</level>
  <level>com.ten60.netkernel.dcp.JavacProvider.registerModule() line:63</level>
  <level>com.ten60.netkernel.module.ModuleDefinition.parseFinal() line:351</level>
</stack>
<ex>
  <id>java.io.IOException</id>
  <message>Cannot run program "javac": CreateProcess error=2, The system cannot  find the file specified</message>
  <stack>
   <level>java.lang.ProcessBuilder.start()</level>
   <level>java.lang.Runtime.exec()</level>
   <level>java.lang.Runtime.exec()</level>
   <level>com.ten60.netkernel.dcp.ModuleState.compile() line:226</level>
  </stack>
  <ex>
   <id>java.io.IOException</id>
   <message>CreateProcess error=2, The system cannot find the file specified</message>
   <stack>
    <level>java.lang.ProcessImpl.create()</level>
    <level>java.lang.ProcessImpl.&lt;init&gt;()</level>
    <level>java.lang.ProcessImpl.start()</level>
    <level>java.lang.ProcessBuilder.start()</level>
   </stack>
  </ex>
</ex>
</ex>