Jdk1.2.2 java commands problem on win98, win2000 and XP

To Whom It May Concern:
I have just bought a new PC and made 3 partitions on the hard drive, each of them has 10G space, to installed 3 operation systems on each of these partitions, win98se, win2000 and XP. Then I installed jdk1.2.2 on each of these operation systems. However, when I go into the �\jdk1.2.2\bin directory and run the executable commands, eg. javac and java etc., get the following different error messages on different operating systems. I have spent a lot of time on trying to fix these problems, however, no any luck. It will be very appreciated if you super expert can have some help on them.
win98se
After run the javac command, get the following error message displayed on a prompt with a Close and a Details buttons.
This program has performed an illegal operation and will be shut down.
If the problem persists, contact the program verdor.
After click the Details button, get the following message:
JAVA caused an invalid page fault in
module SYMCJIT.DLL at 019f:500bf974.
Registers:
EAX=00000e03 CS=019f EIP=500bf974 EFLGS=00010206
EBX=006539a0 SS=01a7 ESP=0063f894 EBP=00000e7f
ECX=0000009f DS=01a7 ESI=00000e7f FS=3557
EDX=00000003 ES=01a7 EDI=05110010 GS=0000
Bytes at CS:EIP:
f3 a5 ff 24 95 48 42 0c 50 8d 49 00 8d 74 31 fc
Stack dump:
500bf8c7 0000027f 500c42b0 5007cc24 05110010 00000e7f 0000027f 007608c0 00000283 006a81a8 006539a0 0063f940 006539e8 05110010 006539a0 00000e7f
win2000
After run the javac command, get the following error message displayed on a prompt with a OK button.
java.exe has generated errors and will be closed by Windows. You will need to restart the program.
An error log is being created.
XP
After run the javac command, get the following error message displayed on a prompt with a Send Error Report and Don't Send buttons.
java.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
If you were in the middle of something, the informaiton you were working on might be lost.
Please tell Micorsoft about this problem.
We have created an error report that you can send to us. We will treat this report as confidential and enonymous.
To see what this error report contains, click here.
thanks and regards!
ZhiCheng

http://java-virtual-machine.net/tech-faq.html
is a great link.
It claims to have a newer, fixed version of problem DLL, SYMCJIT.DLL . Try that.
The page has an Intel link that is out-of -date. The current Intel link is
http://support.intel.com/support/processors/pentium4/sb/CS-007990.htm
"CPUID detection for Intel� Pentium� 4 processor system"
In two lines, they recommend:
dir /s SYMCJIT.DLL
ren SYMCJIT.DLL SYMCJIT.OLD
Of course, Java will run slower, but JIT is a machine-specific concept and this *.DLL was coded to fail if it did not recognize the CPU type. Maybe not a great decision, but there you are.

Similar Messages

  • Oracle Scripting 11i - custom java command problem

    Hello
    Can someone pls help me with the following issue I'm having with Oracle Scripting 11i.
    I want to use in my script a custom Java command for a shortcut button. I follow the instructions given in the docs that I found, but seems that I miss something, so pls advice.
    This is what I did:
    1. in my script a defined a shortcut button with a Java command type. The command name is correctly specified as :
    a.b.myclass::mymethod - I'm also passing a Proxy parameter and a string - the name of the group I want to jump to. (this is the exact example I found in Oracle Scripting use and administer course dating from 2000 -:( ).
    2. I packaged my classes in a jar. (What is strange is that I am using the exact code for my method as the ScriptUtil class provided as bestpractice by Oracle)
    3. using Oracle Scripting Administration Console I upload my jar as global.
    4. Deploy my script to the database.
    5. Run the script
    After all that, what I get when I push the shortcut button is .... nothing!!!!
    If I am removing my jar from the database using Oracle Scripting Administration console - I am getting "Unable to load class since no jar was associated with your script"
    If I'm indicating on purpose a Java method name (that does not exist in my class) I'm getting java.lang.RuntimeException.
    So, I really do not know what the problem is, since my code is the same as the ScriptUtil class, and if I'm using the Script Util as my Java Command it works just fine.
    Can someone help me? What am I doing wrong? Did I missed a step?
    Thank you
    Cristina

    Hello
    Can someone pls help me with the following issue I'm having with Oracle Scripting 11i.
    I want to use in my script a custom Java command for a shortcut button. I follow the instructions given in the docs that I found, but seems that I miss something, so pls advice.
    This is what I did:
    1. in my script a defined a shortcut button with a Java command type. The command name is correctly specified as :
    a.b.myclass::mymethod - I'm also passing a Proxy parameter and a string - the name of the group I want to jump to. (this is the exact example I found in Oracle Scripting use and administer course dating from 2000 -:( ).
    2. I packaged my classes in a jar. (What is strange is that I am using the exact code for my method as the ScriptUtil class provided as bestpractice by Oracle)
    3. using Oracle Scripting Administration Console I upload my jar as global.
    4. Deploy my script to the database.
    5. Run the script
    After all that, what I get when I push the shortcut button is .... nothing!!!!
    If I am removing my jar from the database using Oracle Scripting Administration console - I am getting "Unable to load class since no jar was associated with your script"
    If I'm indicating on purpose a Java method name (that does not exist in my class) I'm getting java.lang.RuntimeException.
    So, I really do not know what the problem is, since my code is the same as the ScriptUtil class, and if I'm using the Script Util as my Java Command it works just fine.
    Can someone help me? What am I doing wrong? Did I missed a step?
    Thank you
    Cristina

  • Java commands problem

    I have installed java. But when I run in a dos shell commands Java, jar etc, it does not recognize them. I want to execute these commands from any directory; Today, I must use C:\j2sdk1.4.2_13\bin to work properly.
    Thanks,

    PATH="C:\j2sdk1.4.2_13\bin"You need to set the path first.

  • *PROBLEM SOLVED: Using "java" command in JSDK1.4.1

    I had a problem before when using the java command for JSDK1.4.1
    What I just realised/found was that there different situations
    for using the "java" command. I will give you some tips in
    case you are running in the same problem or may be to help
    another person:
    RUNNIN FILES (.java) THAT ARE "NOT" PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\"
    2)You can compile it from iside or outside the folder that
    holds the "test.java" (i.e. SUB)
    3)After compiled, you can ONLY run the "test.class" file
    from within the folder that holds the CLASS file i.e. "SUB"
    You can not be at the "APP" folder and type:
    "java SUB.test" NOR "java SUB/test"
    RUNNING FILES (.JAVA) THAT ARE PART OF A PACKAGE
    1)Let's say you have a "test.java" file in "C:\APP\SUB\COM\"
    2)Now let's say that the fiel includes the "package SUB.COM;" line
    in the code, which makes it part of a package.
    COMPILING
    3)If the "test.java" file does NOT use another file in the same
    folder, you can compile it from where ever you want. It could
    be from within inside OR outside the folder holding the file
    4)If the "test.java" file DOES use another file in the same folder,
    then you have to go "javac" it from any folder aoutside the
    folder that is hosting (holding) the "test.java" file
    EXMAPLE:
    If am in folder "APP" I can do this: "javac SUB/COM/test.java"
    Or if am in "SUB" I can do: "javac COM/test.java"
    BUT if Im in "COM" I can NOT do: "javac test.java"
    RUNNING
    5)Make sure that you have produced a "test.class" file when compiling
    6)Recall that the "test.java" file includes the line "package SUB.COM;"
    which means that it is part of this package. and that it is stored
    inside "COM"
    7)You can ONLY run the "test.class" file from the FIRST folder above
    the package where that the "test.class" file is forming part of
    i.e from inside the "APP" folder, You CAN NOT run the file from
    anywhere else but the first folder (APP) above the package (SUB.COM)
    8)EXAMPLE:
    To run the "test.class" I must be in: "C:\APP"
    I can NOT be in "C:\" nor "C:\APP\SUB" nor "C:\APP\SUB\COM"
    Then type in the command window: "java SUB.COM.test" and..
    *** ESO ES TODO AMIGOS!! **** (THAT'S ALL FOLKS)
    I hope this help to other people.. some factors like enviromental
    variable may change what I just stated though.
    In my computer runnning "Windows 2000" my variables are:
    1)JAVA_HOME: C:\j2sdk1.4.1
    2)path: <other paths>;C:\j2sdk1.4.1\bin;
    THANK U FOR ALL THE PEOPLE WHO WERE TRYING TO HELP ME SINCE YESTERDAY
    my email: [email protected]

    Yeah, he did get a lot of it wrong but oh well, at least he's putting forth some effort. If you need any help alex, just send me a note. Everyone should also look into using Jakarta Ant for even your simple applications, it makes all these little directory issues go away real fast. If you need a generic build.xml file that has nice features, again, just send me a note.
    -Spinoza

  • Problem with java commands

    Hello,
    I am able to run the java command on the command promt, but other commands like javap,javac are not working, its saying
    "javap not recognized and internal or external command operable program or batch file"
    what could be the problem?
    thanks in adv
    vakvarma

    thanks for ur reply
    its the problem with my path settings and i have corrented it

  • Java command not working - path problem ?

    Im not really new to Java, but rather new to Linux :=)
    Ive got NetBeans setup and working great on Redhat 7.2 and I can run Java apps from within the IDE...but not from a command line. I get "bash: java: command not found"
    This tells me something is amuk with my path, because obviously the bin folder is not on the path ???
    Help :=)

    also, ive got this in my .bashrc file
    #JDK Home varible
    JDK_HOME=/usr/java/j2sdk1.4.0_01

  • Error when I execute an application with the java command in a DOS prompt

    Hi:
    I have a trouble. I edit the most simple program in Java: hello.java
    In DOS prompt, I compile the program. The result is the file hello.class
    c:\> javac hello.java
    However, I try to execute this program with the command java
    c:\> java hello
    and the DOS prompt send me an error like this: Java.exe has a problem and must be closed.
    I press the option "Don't send". After this, the DOS prompt returns empty and it doesnt execute the application:
    c:\>
    By the way, in an IDE editor like Gel, the file hello.java is compiled and executed correctly without problems.
    I edited other simple Java files, I compiled them succesfully and I can't run them in a DOS pormpt. The result is the same dialog box: "Java.exe has a problem and must be closed".
    The question is: Why don't these programs run in a DOS prompt?
    My Operating System is Microsoft Windows XP and the Java compiler version is: 1.6.0_13
    Thanks in advanced.

    Hi again:
    What happens when you type "java -version"?
    Answer:
    java version "1.2"
    Classic VM (build JDK-1.2-V, native threads)
    What is the value of your %PATH%?
    Answer:
    Path=E:\oracle\product\10.2.0\db_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\Archivos comunes\Adaptec Shared\System;C:\Archivos de programa\Executive Software\DiskeeperLite\;C:\Archivos de programa\QuickTime\QTSystem\;C:\Archivos de programa\Java\jdk1.6.0_13\bin;C:\Archivos de programa\Microsoft SQL Server\80\Tools\Binn\;e:\Microsoft SQL Server\90\Tools\binn\;C:\BITWARE\;C:\Archivos de programa\Archivos comunes\Ahead\Lib\
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    Have you considered running Linux?
    Answer: No, because Linux is more complex.
    Additional information:
    My Operating System is: Microsoft Windows XP Profesional Version 2002, Service Pack 3, running on an Intel Pentium 4, CPU 2.4 Ghz, RAM: 2.23 Gb

  • Running a exe (java command) through Java Code

    Hi I have a program that runs on command line using java command.This program processes a text file that it takes as an argument.I have many files to process so I cannot give command for each individual file.
    Is it possible that I use Java command to run this program for many files in a loop?
    If yes HOW?

    It has many parameters but one parameter for input file. But I think this is not a problem, I can change it as you said.Now I have tried this code:
    Note:In this code I can change B.txt each time in a loop for new input file. (This is just for check)
    import java.io.*;
    public class Test3
         public static void main(String[] args)
              Runtime run = Runtime.getRuntime();
              try
    Process pp=run.exec("C:/Program Files/Java/jdk1.6.0/bin/java -mx300m -classpath  B.txt > sample-output.txt");
                   BufferedReader in =new BufferedReader(new InputStreamReader(pp.getErrorStream()));
                   String line;
                   while ((line = in.readLine()) != null)
                        System.out.println(line);
                   int exitVal = pp.waitFor();
                   System.out.println("Process exitValue: " + exitVal);
              catch (Exception e)
                   e.printStackTrace();
                   System.out.println(e.getMessage());
    } It compiles well but gives exception NoClassDefFound when I use java command to interpret it.Can u help?
    Edited by: kimskams on Jun 29, 2008 7:24 AM

  • Issue with launching Java Program - Java Library Problem?

    I hope this is the right forum, I apologize if it isn't. I am having issues launching a program for a video game that uses java. One of the devs told me to post my issue here, as he doesn't know how much more help he can give with this issue. Using the java -jar command, this is the printout I get:
    Microsoft Windows [Version 6.0.6002]
    Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
    C:\Users\vecdran>java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
    C:\Users\vecdran>chdir C:\Games\Steam\Steamapps\common\Crysis\mods\mwll\actionma
    pper\dist
    C:\Games\Steam\steamapps\common\crysis\Mods\mwll\Actionmapper\dist>java -jar Act
    ionmapper.jar
    Jun 18, 2010 2:25:19 PM org.jdesktop.application.Application$1 run
    *SEVERE: Application class mwllactionmapper.MWLLActionmapperApp failed to launch*
    *java.lang.NullPointerException*
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFo
    lder(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponent
    s(Unknown Source)
    at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknow
    n Source)
    at javax.swing.JComponent.setUI(Unknown Source)
    at javax.swing.JFileChooser.updateUI(Unknown Source)
    at javax.swing.JFileChooser.setup(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at mwllactionmapper.model.ActionmapsFileModel.getMWLLDocumentsFolder(Act
    ionmapsFileModel.java:141)
    at mwllactionmapper.model.ActionmapsFileModel.getMWLLProfiles(Actionmaps
    FileModel.java:160)
    at mwllactionmapper.MWLLActionmapperView.doSelectProfile(MWLLActionmappe
    rView.java:603)
    at mwllactionmapper.MWLLActionmapperView.<init>(MWLLActionmapperView.jav
    a:75)
    at mwllactionmapper.MWLLActionmapperApp.startup(MWLLActionmapperApp.java
    :21)
    at org.jdesktop.application.Application$1.run(Application.java:171)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class mwllac
    tionmapper.MWLLActionmapperApp failed to launch
    at org.jdesktop.application.Application$1.run(Application.java:177)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at javax.swing.ImageIcon.<init>(Unknown Source)
    at sun.swing.WindowsPlacesBar.<init>(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFo
    lder(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponent
    s(Unknown Source)
    at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
    at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknow
    n Source)
    at javax.swing.JComponent.setUI(Unknown Source)
    at javax.swing.JFileChooser.updateUI(Unknown Source)
    at javax.swing.JFileChooser.setup(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at mwllactionmapper.model.ActionmapsFileModel.getMWLLDocumentsFolder(Act
    ionmapsFileModel.java:141)
    at mwllactionmapper.model.ActionmapsFileModel.getMWLLProfiles(Actionmaps
    FileModel.java:160)
    at mwllactionmapper.MWLLActionmapperView.doSelectProfile(MWLLActionmappe
    rView.java:603)
    at mwllactionmapper.MWLLActionmapperView.<init>(MWLLActionmapperView.jav
    a:75)
    at mwllactionmapper.MWLLActionmapperApp.startup(MWLLActionmapperApp.java
    :21)
    at org.jdesktop.application.Application$1.run(Application.java:171)
    ... 8 more
    C:\Games\Steam\steamapps\common\crysis\Mods\mwll\Actionmapper\dist>As you can see, my Java is completely up to date, and this is the only program I appear to have problems launching. I have no idea what to do from here. :(
    PS.
    I had to add the Java path to my System -> Environmental Variables -> Path variable, as it was not there from the start, and before adding it command prompt wouldn't recognize java commands. Don't know whether this indicates anything.
    Edited by: vecdran on Jun 20, 2010 11:23 AM

    [Bug ID 4711700|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4711700] is eerily similar to what you're experiencing. Although the bug was reported against an older version of the JDK the last comment provides a workaround to the problem that may be helpful. Good luck.

  • Using the "java" command in Java 1.4.1

    Hello..
    I don't seem to be able to run any application that should run with
    the "java" command in Java 1.4.1. Everytime I use "java" I get the "java.lang.NoClassDefinitionError"
    Even running this simple program doesn't work:(
    package chapter10;
    public class test {
    public static void main(String args[]) {
    System.out.println("Hello WORLD!!");
    }//end class
    when I run: "java chapter10/test"
    I get the following message:
    "Exception in thread 'main' java.lang.NoClassDefinitionError: chapter10/test"
    And the sam happens to any other class when I try to run it:(
    The "javac" command works fine:) but the "java" is giving me a hard time:(
    I would appreciate any suggestions or answers to this problem:) THANK U

    See if this explanation helps.
    Assume that your programs are part of a package named divelog, which is specified by the first line in each source file: package divelog;
    Also assume that this directory (C:\javaT\myWork\) is part of the CLASSPATH list of directories.
    Also assume that all the source files reside in this directory structure: C:\javaT\myWork\divelog\
    Then a statement to compile a source file Named Divelog.java is:
    C:\JavaT\myWork\>javac divelog\Divelog.java
    Explanation:
    Java starts looking for classes in the directory(s) listed in the classpath. In this case, one of the directories should be: C:\JavaT\myWork\ since it contains your divelog package.
    Compiling
    A class can either be part of a package (ie, no package statement at the top of the class.), or not.
    If the class is not part of a package: Its source file needs to be in one of the classpath directories. To compile you use the command: javac SomeFile.java, from within the classpath directory that contains the file.
    The class is part of a package (this case): The source file must be in a subdirectory structure that starts in one of the classpath directories. The subdirectory structure must match the package statement.
    So, you generate a directory structure C:\javaT\myWork\divelog\ which is the [classpath directory + the package subdirectory structure], and place Divelog.java in it.
    Then from the classpath directory (C:\JavaT\myWork\) use the command: javac divelog\Divelog.java
    This creates a file, Divelog.class in the divelog directory. (The following is where people tend to get lost.) The correct name now, as far as java is concerned, is the combination of package name and class name: divelog.Divelog (note I omit the .class)
    Running
    To run a class that's not part of a package: From within the classpath directory that contains the class. use the command: java SomeFile
    To run a class that is part of a package: From within the classpath directory (C:\JavaT\myWork\) use the command java divelog.Divelog (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • Java command not working

    Hi
    I m learning java since few weeks.... I am facing problem in running java class using java command.I have a folder as
    D:\deepali\Bday\Birth\web-inf\classes\BI
    in this folder i have TryAPI.java file. Its getting compiled properly. but whenever i give command as
    java TryAPI
    it gives me the following error
    D:\deepali\Bday\Birth\web-inf\classes\BI>java TryAPI
    Exception in thread "main" java.lang.NoClassDefFoundError: TryAPI (wrong name: BI/TryAPI)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    My path is
    D:\Oracle\Ora81\bin;C:\Program Files\Oracle\jre\1.1.7bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;;D:\tibco\tibrv\BIN;C:\j2sdk1.4.2_05\lib;C:\j2sdk1.4.2_05\bin;;D:\tibco\BIN;C:\TIBCO\TIBRV\BIN;
    Can anyone explain me why this is happening?
    Thanks and Regards
    Deepali

    You see the error message that says "wrong name. . ."?
    That means you used the wrong name for the class. You have it in a package, but you didn't use the package name. (You have to)
    This is a minimal explanation of packages.
    Assume that your programs are part of a package named myapp, which is specified by this first line in each source file:
    package myapp;
    Also assume that directory (C:\java\work\) is listed in the CLASSPATH list of directories.
    Also assume that all your source files reside in this directory structure: C:\java\work\myapp\
    Then a statement to compile your source file named aProgram.java is:
    C:\java\work\>javac myapp\aProgram.java
    And a statement to run the program is:
    java myapp.aProgram
    (This can be issued from any directory, as Java will search for the program, starting the search from the classpath directories.)
    Explanation:
    Compiling
    A class is in a package if there is a package statement at the top of the class.
    The source file needs to be in a subdirectory structure. The subdirectory structure must match the package statement. The top subdirectory must be in the classpath directory.
    So, you generate a directory structure C:\java\work\myapp\ which is the [classpath directory + the package subdirectory structure], and place aProgram.java in it.
    Then from the classpath directory (C:\java\work\) use the command: javac myapp\aProgram.java
    Running
    Compiling creates a file, aProgram.class in the myapp directory.
    (The following is where people tend to get lost.)
    The correct name now, as far as java is concerned, is the combination of package name and class name: myapp.aProgram (note I omit the .class) If you don't use this name, java will complain that it can't find the class.
    To run a class that's NOT part of a package, you use the command: java SomeFile (assuming that SomeFile.class is in a directory that's listed in the classpath)
    To run a class that IS part of a package, you use the command java myapp.aProgram (Note that this is analogous to the command for a class not in a package, you just use the fully qualified name)

  • Java command still not working - please help

    i have installed jdk1.6.0_05. The javac command works fine but the java command does not work at all. even when i try java HelloWorld i receive this exception message
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
    Caused by: java.lang.ClassNotFoundException: HelloWorld
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    please help (you to SUN)!!

    bart@kerberos:~$ javac -help
    Usage: javac <options> <source files>
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath <path>          Specify where to find user class files and annotation processors
      -cp <path>                 Specify where to find user class files and annotation processors
      -sourcepath <path>         Specify where to find input source files
      -bootclasspath <path>      Override location of bootstrap class files
      -extdirs <dirs>            Override location of installed extensions
      -endorseddirs <dirs>       Override location of endorsed standards path
      -proc:{none,only}          Control whether annotation processing and/or compilation is done.
      -processor <class1>[,<class2>,<class3>...]Names of the annotation processors to run; bypasses default discovery process
      -processorpath <path>      Specify where to find annotation processors
      -d <directory>             Specify where to place generated class files
      -s <directory>             Specify where to place generated source files
      -implicit:{none,class}     Specify whether or not to generate class files for implicitly referenced files
      -encoding <encoding>       Specify character encoding used by source files
      -source <release>          Provide source compatibility with specified release
      -target <release>          Generate class files for specific VM version
      -version                   Version information
      -help                      Print a synopsis of standard options
      -Akey[=value]              Options to pass to annotation processors
      -X                         Print a synopsis of nonstandard options
      -J<flag>                   Pass <flag> directly to the runtime systemSee the bold part.
    More information: [http://java.sun.com/docs/books/tutorial/java/package/managingfiles.html]

  • 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

  • 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..

  • Add a system property when the deployment java command is build by jdevelop

    Hello everybody,
    I have fedora core 4 installed using jdk 1.4.2_06 and JDeveloper 9.0.5.2.
    I have cofigured a connection to a external OC4J standalone where I want to deploy my applications.
    There are a problem between fedora core 4 anda jdk 1.4.2 that it's solved adding the argument "-Djava.net.preferIPv4Stack=true" to the java command when it's run.
    The problem is that I don't know where I must put this parameter so that when I do a deployment to the OC4J Standalone, the command that jdeveloper build include this system property. Now the command that it builds is
    java -jar admin.jar ...
    I need that the command was:
    java -Djava.net.preferIPv4Stack -jar admin.jar ...
    Thank you very much in advance.

    I'll see this menu, but it allow to configure the internal OC4J standalone of the JDeveloper.
    I want to deploy to an OC4J standalone that is external to JDeveloper, and that is running in another machine.

Maybe you are looking for

  • On my iphone why won't my iTunes let me download anything?

    I'm trying to download a tv episode and iTunes will not work at all. Yes I have WiFi but it still won't download anything!! I need help!

  • Order Series key figure is considered as Time Series

    Hi Gurus, I'm adding a new Key FIgure (Order type) into a copied version of SNP Planning Area. I have assigned category and therefore category group and, applied similar settings like other KFs (Planning Area, Planning Bokk...). The thing is when goi

  • Missing text in books on ipad

    Missing text from books downloade at times on the iPad

  • Bitwise Right Shift vs Divide by 2

    Something that just pondered across my mind. Bitwise operators have their uses, and I've always known about right/left shifting to divide/multiply by 2. I recently did some empirical analysis on an algorithm using this technique, and I had to iterate

  • HP Deskjet 3050A J611 Series

    I am trying to use my printer all in one HP Deskjet 3050A J611 Series from a MS Surface 2. Could you help me know how can I do that?