Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Can't Compile Java from Code Editor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    To get Java Extra running I downloaded the JDK1.3. Turns out that won't work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras now work. However, I cannot compile a Java program. I get this error: C:dataJava>java Java2Evt test.java Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion' has value '1.2', but '1.3' is required. Error: could not find java.dll Error: could not find Java 2 Runtime Environment. Any ideas what needs fixing? My path: PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; C:SQL10 SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW BEM;C:W DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 Classpath: CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S tudio35 libwdt400ut.jar;c:wdt400extrasaldoncms.jar (Cross posted this because I'm not sure which is the correct forum. Or even if anyone from IBM is monitorint these two forums...)

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    I found a registry entry that was wrong. Although I reinstalled JDK 1.2 the windows registry still had 1.3 in it under HKEY_LOCAL_MACHINESoftwareJavasoftjava Runtime EnvironmentCurrentVersion I change this to 1.2 and the JNI error is gone. "Kevin Heiman" wrote in message news:943a6s$v1g$1@news.software.ibm.com... > I have a similiar problem poseted on the websphere studio400 newgroup. I > was able to compile from the project view with right click menu after adding > c:WDT400javaclasses.jar to the classpath. > However I can not compile from the editor. I am getting a JNI error that > says Java is not installed correctly. I had JDK1.3 installed but switched > back to JDK 1.2.2. no luck yet on an answer. I am thinking about swithcing > to 1.1.7 to see if that helps. It worked before under CODE v323. > Kevin > > "SJ Lennon" wrote in message > news:942r99$g9q$1@news.software.ibm.com... > > To get Java Extra running I downloaded the JDK1.3. Turns out that won't > > work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras now > > work. > > > > However, I cannot compile a Java program. I get this error: > > > > C:dataJava>java Java2Evt test.java > > Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion' > > has value '1.2', but '1.3' is required. > > Error: could not find java.dll > > Error: could not find Java 2 Runtime Environment. > > > > Any ideas what needs fixing? > > > > My path: > > PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; > > C:SQL10 > > SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW > > BEM;C:W > > DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 > > > > Classpath: > > CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S > > tudio35 > > libwdt400ut.jar;c:wdt400extrasaldoncms.jar > > > > (Cross posted this because I'm not sure which is the correct forum. Or > > even if anyone from IBM is monitorint these two forums...) > > > > > >

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    You want JAVA not JAVAC . You are trying to run a Java program call Java2Evt which is the Code400 compiler interface. You are passing it the name of the java source to compile. Java2Evt will issue the JAVAC for you and capture the outputs etc. > > > C:dataJava>java Java2Evt test.java "SJ Lennon" wrote in message news:945kcl$ves$1@news.software.ibm.com... > Yes, now that you mention it, JAVAC makes more sense. But I didn't key > that line. It came from the Code Editor when I tried to "Compile > local". > > Sam > > "Alan Chao" wrote in message > news:3A65A9B2.621E232E@ca.ibm.com... > > I think you need to say > > javac Java2Evttest.java > > not > > java Java2Evttest.java > > > > Could you please re-try? > > > > SJ Lennon wrote: > > > > > To get Java Extra running I downloaded the JDK1.3. Turns out that > won't > > > work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras > now > > > work. > > > > > > However, I cannot compile a Java program. I get this error: > > > > > > C:dataJava>java Java2Evt test.java > > > Registry key 'SoftwareJavaSoftJava Runtime > EnvironmentCurrentVersion' > > > has value '1.2', but '1.3' is required. > > > Error: could not find java.dll > > > Error: could not find Java 2 Runtime Environment. > > > > > > Any ideas what needs fixing? > > > > > > My path: > > > > PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; > > > C:SQL10 > > > > SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW > > > BEM;C:W > > > DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 > > > > > > Classpath: > > > > CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S > > > tudio35 > > > libwdt400ut.jar;c:wdt400extrasaldoncms.jar > > > > > > (Cross posted this because I'm not sure which is the correct forum. > Or > > > even if anyone from IBM is monitorint these two forums...) > > >

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    Yes, now that you mention it, JAVAC makes more sense. But I didn't key that line. It came from the Code Editor when I tried to "Compile local". Sam "Alan Chao" wrote in message news:3A65A9B2.621E232E@ca.ibm.com... > I think you need to say > javac Java2Evttest.java > not > java Java2Evttest.java > > Could you please re-try? > > SJ Lennon wrote: > > > To get Java Extra running I downloaded the JDK1.3. Turns out that won't > > work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras now > > work. > > > > However, I cannot compile a Java program. I get this error: > > > > C:dataJava>java Java2Evt test.java > > Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion' > > has value '1.2', but '1.3' is required. > > Error: could not find java.dll > > Error: could not find Java 2 Runtime Environment. > > > > Any ideas what needs fixing? > > > > My path: > > PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; > > C:SQL10 > > SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW > > BEM;C:W > > DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 > > > > Classpath: > > CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S > > tudio35 > > libwdt400ut.jar;c:wdt400extrasaldoncms.jar > > > > (Cross posted this because I'm not sure which is the correct forum. Or > > even if anyone from IBM is monitorint these two forums...) >

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    No ... what he is trying to do is lauch the java app in CODE400 that does the compiles. I just tested the the command line from a DOS window and it works OK. I get a little java dialod that says 'compiling..' then says 'compiled clean'. This seem to be the same launch as the one in CODE Projects which is mapped to CPOJcmp on my CODE400 V451 install. THis is seen using Options/Actions.... and selecting Local tab. then look at the Java Compile. D:CODE400XDJavaCodeApps>java Java2Evt Hello.java javac Hello.java Compiled OK! D:CODE400XDJavaCodeApps>set classpath CLASSPATH=.;C:xalan-j_1_2_1xerces.jar;C:xalan-j_1_2_1xalan.jar;C:PROGRA ~1MQSERI~1 oolsjavaclntsamplesen_us;C:PROGRA~1MQSERI~1javalib COMIB M~1.JAR;C:PROGRA~1MQSERI~1javalibCOMIBM~2.JAR;C:xa lan-j_1_2_1samples xalansamples.jar;c:
    hinojs.jar;C:xalan-j_1_2_1sf.jar;c:geacxmllib;c: jdk1.3jrelib
    t.jar;C:WDT400VAJAVAeab
    untime30jt400.jar;C:WDT400JAV A;C:WDT400Studio35libswingall.jar;C:WDT400Studio35 libwdt400ut.jar;C: WDT400JAVAclasses.jar; D:CODE400XDJavaCodeApps>set path Path=C:IBMDEBUGin;crogra~1econfigcfgViews;C:jdk1.2.2in;C:IBM ConnectorsEncinain;C:WINNTsystem32;C:WINNT;C:WINN Tsystem32WBEM;C:M SSQL7BINN;C:Program FilesMQSeries Clientin;C:Program FilesMQSeries Client oolscsamplesin;C:IMNNQ;C:Program FilesSymantecpcAnywhere;C:PROGRA~1IBMCLIENT~1;C:PR OGRA~1IBMCLIENT~1 Shared;C:PROGRA~1IBMCLIENT~1Emulator;crogra~1econfigLib;C:WDT400 "Alan Chao" wrote in message news:3A65A9B2.621E232E@ca.ibm.com... > I think you need to say > javac Java2Evttest.java > not > java Java2Evttest.java > > Could you please re-try? > > SJ Lennon wrote: > > > To get Java Extra running I downloaded the JDK1.3. Turns out that won't > > work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras now > > work. > > > > However, I cannot compile a Java program. I get this error: > > > > C:dataJava>java Java2Evt test.java > > Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion' > > has value '1.2', but '1.3' is required. > > Error: could not find java.dll > > Error: could not find Java 2 Runtime Environment. > > > > Any ideas what needs fixing? > > > > My path: > > PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; > > C:SQL10 > > SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW > > BEM;C:W > > DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 > > > > Classpath: > > CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S > > tudio35 > > libwdt400ut.jar;c:wdt400extrasaldoncms.jar > > > > (Cross posted this because I'm not sure which is the correct forum. Or > > even if anyone from IBM is monitorint these two forums...) >

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Can't Compile Java from Code Editor

    I think you need to say javac Java2Evttest.java not java Java2Evttest.java Could you please re-try? SJ Lennon wrote: > To get Java Extra running I downloaded the JDK1.3. Turns out that won't > work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras now > work. > > However, I cannot compile a Java program. I get this error: > > C:dataJava>java Java2Evt test.java > Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion' > has value '1.2', but '1.3' is required. > Error: could not find java.dll > Error: could not find Java 2 Runtime Environment. > > Any ideas what needs fixing? > > My path: > PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; > C:SQL10 > SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW > BEM;C:W > DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 > > Classpath: > CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S > tudio35 > libwdt400ut.jar;c:wdt400extrasaldoncms.jar > > (Cross posted this because I'm not sure which is the correct forum. Or > even if anyone from IBM is monitorint these two forums...)

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Can't Compile Java from Code Editor

    Can't Compile Java from Code Editor

    I have a similiar problem poseted on the websphere studio400 newgroup. I was able to compile from the project view with right click menu after adding c:WDT400javaclasses.jar to the classpath. However I can not compile from the editor. I am getting a JNI error that says Java is not installed correctly. I had JDK1.3 installed but switched back to JDK 1.2.2. no luck yet on an answer. I am thinking about swithcing to 1.1.7 to see if that helps. It worked before under CODE v323. Kevin "SJ Lennon" wrote in message news:942r99$g9q$1@news.software.ibm.com... > To get Java Extra running I downloaded the JDK1.3. Turns out that won't > work. So I uninstalled 1.3 and downloaded JDK1.2 and Java Extras now > work. > > However, I cannot compile a Java program. I get this error: > > C:dataJava>java Java2Evt test.java > Registry key 'SoftwareJavaSoftJava Runtime EnvironmentCurrentVersion' > has value '1.2', but '1.3' is required. > Error: could not find java.dll > Error: could not find Java 2 Runtime Environment. > > Any ideas what needs fixing? > > My path: > PATH=C:JDK1.2BIN;C:IBMDEBUGBIN;C:IBM;C:IBMSHARED;C :IBMEMULATOR; > C:SQL10 > SQL10BIN;C:SQL10SQL10DLL;C:BIN;C:INFORMIXBIN;C:WIN DOWSSYSTEMW > BEM;C:W > DT400;C:WINDOWS;C:WINDOWS;C:WINDOWSCOMMAND;C:IMNNQ _98 > > Classpath: > CLASSPATH=c:WDT400JAVA;c:WDT400Studio35libswingall .jar;c:WDT400S > tudio35 > libwdt400ut.jar;c:wdt400extrasaldoncms.jar > > (Cross posted this because I'm not sure which is the correct forum. Or > even if anyone from IBM is monitorint these two forums...) > >
Working...
X