Topic - com.ten60.netkernel.util.NetKernelException on startup
Topic - com.ten60.netkernel.util.NetKernelException on startup Topic - com.ten60.netkernel.util.NetKernelException on startup
from forum Installation
 forum index   my profile   search 
 new topic  post reply 
moderators: pjr tab
com.ten60.netkernel.util.NetKernelException on startup
Joined: 8-November-2006
Posts: 15
Posted: 25-July-2007 11:38
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>
No javac available
Joined: 7-February-2005
Posts: 404
Location: between ROC and a hard place
Posted: 27-July-2007 14:41
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
Thanks
Joined: 8-November-2006
Posts: 15
Posted: 4-August-2007 19:13
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.
Update on fix
Joined: 8-November-2006
Posts: 15
Posted: 14-November-2007 15:34
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.
Same Error under Java 6 u3
Joined: 10-November-2007
Posts: 7
Location: Calgarry
Posted: 22-November-2007 00:45
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
Java 6 u3 issue on Windows
Joined: 10-November-2007
Posts: 7
Location: Calgarry
Posted: 22-November-2007 19:08
Reinstalled under c:\java\  not the default c:\program files\ and the problem goes away.

- Peace
 new topic  post reply  To find out about new replies to this post as they occur
please subscribe to one of these feeds:
AtomRSS moderate 
© 2003-2006, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.