Problem about loader(java.exe)....

hi, everyone.
// HelloWorld.class is my test java program
E:\myapp>java HelloWorld
Exception thrown.
java.lang.ClassNotFoundException: COM.cloudscape.core.RmiJdbcDriver
-------->the driver class is in cloudscape.jar
--------> then I put the classes path on
E:\myapp>java -cp c:\jdk1.3.1\jre\lib\ext\cloudscape.jar HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
--------> got the driver..... but it lost my class!
--------> tell it where my class is.
E:\myapp>java -cp c:\jdk1.3.1\jre\lib\ext\cloudscape.jar e:\yun\HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: e:\yun\HelloWorld
-------->problem is still there..
I was puzzled.
thanks..

Solution 1: move cloudscape.jar to c:\jdk1.3.1\lib\ext\cloudscape.jar
Solution 2: Run with E:\myapp>java -cp .;c:\jdk1.3.1\jre\lib\ext\cloudscape.jar HelloWorld
Solution 3: Run with java -cp e:\yun\;c:\jdk1.3.1\jre\lib\ext\cloudscape.jar HelloWorld (if HelloWorld.class is in e:\yun\)

Similar Messages

  • Problems to invoke java.exe from Java application, but ok for javac.exe??

    How to invoke DOS application from Java application??
    I try the following but it didn't work to invoke command prompt and java.exe, it
    is working to invoke javac.exe. Any ideas why??
    import java.io.*;
    public class CallJavaTest
    { public static void main(String[] args)
    { try
    Runtime.getRuntime().exec("C:\\WINNT\\System32\\cmd.exe"); //doesn't work!!
    Runtime.getRuntime().exec("javac "+ "Test.java"); //it works!!
    Runtime.getRuntime().exec("java "+ "Test"); //doesn't work!!
    catch(IOException e)
    System.out.println(e);

    hi
    String[] cmd = {"cmd","/c", "start",enteryourdoscommandhere};
    Runtime rt = Runtime.getRuntime();
    Process ps = rt.exec(cmd);
    ps.waitFor();
    int ev = ps.exitValue();
    it works for my winXP.
    hope it can helps and not too late ..

  • Problem with running java.exe

    I am new to Java, I have windows XP PRO and have recently installed JDK 5.0 with net beans 4.0 beta 2 bundle to C:\. I have also set the PATH & CLASSPATH as follows
    PATH = C:\jdk1.5.0\bin
    CLASSPATH = .;%classpath%
    I am able to compile at the comand prompt using for example javac Fruit.java
    but when I try to run the program using java Fruit , I get the following message:
    Exception in thread "main" java.lang.NoClassDefFoundError: Fruit
    Please can some one help me where am I going wrong?

    Thakyou for the reply , but I am still having the same problem
    My .Java & .class file are in C:\MyJava
    My JDK is in C:\jdk1.5.0
    My Command Prompt is C:\MyJava
    The Only way I have managed to run my programs is, at the Command Prompt by typying
    C:\MyJava>C:\jdk1.5.0\bin\java Fruit
    But I am able to compile my programs by typing
    C:\MyJava>javac Fruit.java
    I would like to know is there any way I could run my programs by typing
    C:\MyJava>java Fruit
    My Source code is
    public class Fruit
    public static void main(String[] args)
    //Declare and initialize three variables
    int numOranges = 5;
    int numApples = 10;
    int numFruits = 0;
    numFruits = numOranges + numApples;
    System.out.println("A totally fruity program");
    System.out.println("Total fruit is " + numFruits);
    C:\MyJava>set
    ALLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\S Kathirkamanathan\Application Data
    CLASSPATH=.;%classpath%
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=SAYANTHA-WL3F5L
    ComSpec=C:\WINDOWS\system32\cmd.exe
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\S Kathirkamanathan
    LOGONSERVER=\\SAYANTHA-WL3F5L
    NUMBER_OF_PROCESSORS=2
    OS=Windows_NT
    Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\AT
    I Technologies\ATI Control Panel;C:\Program Files\Sonic\MyDVD;C:\jdk1.5.0\bin;c:
    \jdk1.5.0\bin;
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 3, GenuineIntel
    PROCESSOR_LEVEL=15
    PROCESSOR_REVISION=0303
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\SKATHI~1\LOCALS~1\Temp
    TMP=C:\DOCUME~1\SKATHI~1\LOCALS~1\Temp
    USERDOMAIN=SAYANTHA-WL3F5L
    USERNAME=S Kathirkamanathan
    USERPROFILE=C:\Documents and Settings\S Kathirkamanathan
    windir=C:\WINDOWS
    I would be grateful for any suggestions. Thank you

  • Two problems with Load Java

    Problem one:
    I want to load a simple java class into a database for testing purposes of demonstrating how to use pl/sql to call a java program inside an oracle database using PLsql. The program deletes a file that you supply the path for and was in the 8i documentation.
    If I try to load the Java source using:
    loadjava -user user -oci8 -resolve JDelete.java
    i get the error: end of file or communication channel ora-03113 and it tells me that creation failed.
    I read it might be a bug but didnt fully understand. Any help out there?
    Issue two: failing at the above I tried to load the class file instead and got the following error:
    SQL> select fdelete('C:\temp\temporyfile.delete') from dual;
    select fdelete('C:\temp\temporyfile.delete') from dual
    ERROR at line 1:
    ORA-29516: Aurora assertion failure: Assertion failure at eox.c:317
    Uncaught exception System error: java/lang/UnsupportedClassVersionError
    ORA-29516: Aurora assertion failure: Assertion failure at eox.c:232
    says for 9.1 we should be compiling stuff with Java 1.3. I tried to get the SDK for 1.3 but Sun seems to no longer support it and I could not find it for download. Any help out there?

    Can anyone help with this problem.

  • Problem with load java

    Hi,
    Can anyone explain to me why this is hapenning :
    Error while creating class java/util/logging/Logger
    ORA-29545: badly formed class: User has attempted to load a class (java.util.logging.Logger) into a restricted package. Permission can be granted using dbms_java.grant_permission(<user>, LoadClassInPackage...
    Thanks,
    Caz (confused!)

    BTW I was using the loadjava command to load a class into a database.

  • Problem about loading server program to server

    Hey Experts,
    I'm facing an unexpected problem. I'm Using netbeans 6.1, JasperReport 3.7.0, iReport3.5.1 for creating a report.
    I've successfully created a report using servlet. And after that I create a new report for another report. In this case,
    netbeans shows me errors like:
    org.apache.jasper.JasperException: java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to org.apache.AnnotationProcessor
         org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:156)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
    I checked but could not find any problem. Can anybody help me with This?

    Note: This thread was originally posted in the [CLDC and MIDP|http://forums.sun.com/forum.jspa?forumID=76] forum, but moved to this forum for closer topic alignment.

  • I need an example about loading java method to Oracle

    Hi,
    Could anyone give me an simple example of a Java method which will be loaded into Oracle.
    Let say, the method will read the email address based on employee_ID from a table called Employee. Thank you very much for all your help.
    Hellenie
    PS: I would like to see java code and to see how it could call a table without having to deal with connection object ,statement,etc...

    PS: I would like to see java code and
    to see how it could call a table without
    having to deal with connection
    object ,statement,etc...A Java Stored Procedure still uses JDBC to talk to the database just like on the client. The difference is that instead of making a remote connection (from client to server), your connection is local and is obtained via the url
    DriverManager.getConnection("oracle:jdbc:kprb:@");
    If you don't want to use a Connection, Statement, Resultset, etc, you may wish to use PL/SQL. One of the advantages of Java Stored Procedures is it uses the same JDBC calls as you do on the client, so it makes it easier to move code from client, to app server, to database tier.
    Hope this clears things up a bit,
    Rob
    null

  • Set CLASSPATH does not work, how do I run java.exe?

    Hi guys,
    I have a problem running the java.exe and I'm using Win XP. Here is my problem:
    Under the command prompt, I set the path: path = C:\Program Files\Java 2\j2sdk1.4.2_05\bin
    Then I created a folder in E:\Hello. I save my Hello.java in that folder, and I compiled it:
    javac Hello.java
    Now, there is a Hello.class created in that folder.
    Then I try to run it: java Hello
    but I got an error: "Exception in thread "main" java.lang.NoClassDefFoundError: Hello"
    So, I try to set CLASSPATH, however, the problem remains, no matter how hard I try.
    Any ideas?

    None of the suggestion worked, I wonder why???
    Here is my location for the JDK:
    C:\Program Files\Java 2\j2sdk1.4.2_05\bin
    Here is my location for my Java project file:
    E:\JavaProject\Hello
    Here is the file name:
    Hello.java
    Here is the command prompt:
    C:\Documents and Settings\Alex Ngai> e:
    E:\> cd JavaProject
    E:\JavaProject> cd Hello
    E:\JavaProject\Hello> path = C:\Program Files\Java
    2\j2sdk1.4.2_05\bin
    E:\JavaProject\Hello> javac Hello.java
    E:\JavaProject\Hello> java Hello
    Exception in thread "main"
    java.lang.NoClassDefFoundError: Hello
    E:\JavaProject\Hello> java -cp Hello
    // Does not work, it lists all of the options for java
    E:\JavaProject\Hello> set CLASSPATH =
    E:\JavaProject\Hello
    CLASSPATH="C:\Program
    Files\Java\j2re1.4.2_04\lib\ext\QTJava.zip"
    E:\JavaProject\Hello> java Hello
    Exception in thread "main"
    java.lang.NoClassDefFoundError: Hello
    // I have tried a lot more, none of them won't work!!
    Now what should I try in the following command prompt?
    E:\JavaProject\Hello>Given the above there is only one possible explaination.
    You have a file named "Hello.java".
    In that file you have a non-public class which is NOT named "Hello". Instead it is named something like "HelloWorld" or even "hello" (case matters.)

  • Java.exe has encountered a problem and needs to close.

    I installed Oracle8i on my P4 then when I reboot I get the error "java.exe has encountered a problem and needs to close." even if I click on "don't report" if keeps popping up, anything to do to resolve this?
    Thanks.

    Hello...
    i had the same problem. then when i searched oracle documentation, it suggested as follows:
    1. go to your %ORACLE_HOME%\Apache\Apache\conf\httpd.conf
    2. comment out 2 lines that has
    include ....\jserv.conf
    include ....\oracle_apache.conf
    so your new line will be:
    #include ....\jserv.conf
    #include ....\oracle_apache.conf
    Those lines are at the end of the file.
    3. save the file.
    4. reboot your machine.
    that solution works for me.. hope it works for you too.
    GOOD LUCK!
    --Melani                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Because you this loading firefox.exe like process from the beginning of the computer with a load from 38 to 42000 kb or like I can solve this problem

    because you this loading firefox.exe like process from the beginning of the computer with a load from 38 to 42000 kb or like I can solve this problem, atualmente when lighting the computer among the processes that are loaded when beginning the computer is a process of name firefox.exe with a load of between 30 and 50000 kb but I don't find to the registered firefox inside the programs to crgar from the beginning when entering for msconfig.exe my operating system is so far windows xp up-to-date sp3 and my firefox is 7.0.1 version in Spanish that is my native language.

    That seems very suspicious. Two suggestions.
    First, try Firefox's Safe Mode. This will let you work around problems with add-ons and perhaps help you identify things to remove so that Firefox goes back to normal.
    I recommend making a backup of your Firefox settings before starting in Safe Mode. To back up Firefox, see [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information].
    Next, try starting Firefox in Firefox
    [http://support.mozilla.com/kb/Safe+Mode Safe Mode]. Be careful not to "reset" anything permanently if you didn't back up.
    Does that work? If so, you may need to disable your add-ons and just bring the most essential ones back to life until you discover the problem one.
    Second thought: malware. You could supplement your usual security scans with these:
    Malwarebytes Anti-malware : http://www.malwarebytes.org/mbam.php
    SUPERAntiSpyware : http://www.superantispyware.com/
    HouseCall : http://housecall.trendmicro.com/
    Hope this helps.

  • I have OSX 10.7.5.  I loaded Powerschool, this sent me to oracle to load java 7, now powerschool won't laod, java 7 logo just spins.  I contacted orgacle live help, said it was a mac problem that they could fix for $75.  Any help would be wonderful.  MT

    I have OSX 10.7.5.  I loaded Powerschool, this sent me to oracle to load java 7, now powerschool won't laod, java 7 logo just spins.  I contacted orgacle live help, said it was a mac problem that they could fix for $75.  Any help would be wonderful.  MT

    Pearson put out a tech note on this today - the new versions of Java are what's causing the problem. If you can use Time Machine to rollback java prior to a java 7 or 1.6.0_37 version that will get you going again. I've been searching for hours for a place to download the older version but it seems Apple's site and Oracle all only have the latest release. Still trying to see if I have a copy downloaded on a system that hasn;t been updated to copy off to a network drive or usb and install the older version on to systems.
    PowerSchool Tech Notes
    PowerTeacher Gradebook and recent Mac OS X Java update
    An update to Java for Mac OS X was released on October 16, 2012. An issue has been identified with this Java update (Java for OS X 2012-006) which prevents teachers from launching PowerTeacher Gradebook.
    Teachers using PowerTeacher Gradebook should avoid taking this Java update to version 1.6.0_37 until notified that PowerTeacher Gradebook has been certified with this latest version of Java 1.6 for Mac OS X. PowerTeacher Gradebook will continue to work on Mac OS X workstations with Java version 1.6.0_35.
      Additional communication will be provided once a workaround is identified or an updated version of PowerTeacher Gradebook is available.

  • Java.exe problem

    Hi,
    Would anybody please help me with this problem.
    I tried to execute java.exe with the command: java -Djava.library.path=E:\Program Files\Testing TestApp, it threw exception could not find the the path since there is a blank space between Program Files. I tried to put quotation marks around them, I got same problem. Java command seemed like did not like space. If I move my lib to new place e.g Test and execute my TestApp with the command: java -Djava.library.path=E:\Test TestApp, it worked fine. How can I solve this problem without remove space in the path.
    Thanks
    Hung

    i think you want to point to your programe classes.
    if so use
    java -classpath "E:\Program Files\Testing" TestApp
    because
    java.library.path contains many pathes related to JRE.
    D:\Java\sdk\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Java\sdk;D:\Java\sdk\bin;D:\Java\J2EE\bin;D:\Java\WSDP\bin;D:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell
    try this
    System.out.println(System.getProperty("java.library.path"));-Best regards,
    mnmmm

  • Problem with java applications - java.exe in loop

    Hi
    I just install j2sdk1.4.1_01
    I got a problem:
    when I run any code without graphics (clasic hello world with println) everything run fine
    when I try to run anythig else (with some swing) the java.exe process start to use 100% of the CPU and never end (probably a loop)
    The same think happen when I launch Java web Start so I suppose that the problem is not the code (I just use some dialog with one or two buttons and the application run fine on other pc).
    My system:
    OS: w2k server - SP3
    CPU: P4 1.8GHz
    RAM: 512 MB
    several services running: IIS with dhcp server, DNS server.
    The system was scanned and no viruses are found.
    I unistall everything (j2sdk, jre, web start) and I got the same after reinstalling them.
    I launch the application from the comand line and the results doesn't change.
    I install a different version of SDK (02 instead of 01) but nothing change.
    The same happens if I try to use jbuilder8.
    Any idea

    Try updating DirectX.

  • Problem with java.exe

    Hi there, I have had Java 1.4 SDK running on my machine now for several month however I am now experiencing problems when trying to run java.exe....
    Whenever I try to run (for example):
    java helloWorldI get the following error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: helloWorld
    Yes I did compile the files... and yes I am in the right direcotry.. this happens on every single file I have. Can anyone suggest what might be wrong? And how to fix this... also no java applets will run on the web.
    Thankyou, Mark.

    Type the following at the command line:
    echo %CLASSPATH%
    The result should contain a . with ; around it (unless it's the first/last item). This means to include the current directory in the search path for java classes.
    Without this java will only search the locations specified in the classpath.
    To add it you need to set an environment variable, if you have NT/2K/XP you can do this from the 'advanced' tab of the system properties, on other OS's I cant remember the permanent manner but for a temporary fix you could type:
    set CLASSPATH=%CLASSPATH%;.
    At the command line then type:
    java <My Progam Name>
    Hope this helps.

  • Windows xp and java.exe problem

    Hello all..
    I tried to execute have a batch file consisting a jar file and classes in windows xp platform. I used j2sdk1.4.0_03. All my classes are stored in : C:\MyDocument\Softwares\classes directory
    and the jar files are in: C:\MyDocument\Softwares.
    I wrote the following commands in the batch file:
    java -classpath C:\MyDocument\Softwares\classes;
    C:\MyDocument\Softwares\jexcelapi.jar mainClass
    When I lauched that batch file, a message came out:
    java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
    Could you tell me where the problem is and why? Do I need windows xp patch to eliminate the problem? And where can I find that patch?
    Thanx for any suggestions...
    Richard

    Thanks for your comments. I have tried to reinstall the J2SDK, but then another error message appeared:
    Error occured during the initialization of VM
    java/lang/NoClassDefFoundError:java/lang/Object
    I've checked my Path and it's set as following:
    C:\j2sdk1.4.0_03\bin;
    and my classpath setting:
    C:\MyDocument\Softwares;C:\MyDocument\Softwares\classes;C:\j2sdk1.4.0_03\lib;
    When I tried to execute the java command in any directory (inclusively in C:\MyDocument\Softwares) I always got that message. The only directory where I was able to run the command is in C:\j2sdk1.4.0_03\bin;
    Before I did the reinstallation, I never had such a problem.
    Have any hits? Thanks in advance..

Maybe you are looking for