Problem running a Java program

Hi...I'm developing a CORBA project and I'm using java to implement it. I wrote a Hello World program and I could compile all my files (IDL files and all the generated .java files). But when I try to run my Server program I get the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloApp/_HelloImplBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at HelloStringifiedServer.main(HelloStringifiedServer.java:24)
Can anyone please help me!
Thanks in advance

Sure, here is the Server code:
// HelloStringifiedServer.java, stringified object reference version
import java.io.*;
import org.omg.CORBA.*;
import HelloApp.*;
public class HelloStringifiedServer {
class HelloServant extends _HelloImplBase
public String sayHello()
return "\nHello world !!\n";
public static void main(String args[])
try{
// create and initialize the ORB
ORB orb = ORB.init(args, null);
// create servant and register it with the ORB
HelloServant helloRef = new HelloServant();
orb.connect(helloRef);
// stringify the helloRef and dump it in a file
String str = orb.object_to_string(helloRef);
String filename = System.getProperty("user.home")+
System.getProperty("file.separator")+"HelloIOR";
FileOutputStream fos = new FileOutputStream(filename);
PrintStream ps = new PrintStream(fos);
ps.print(str);
ps.close();
// wait for invocations from clients
java.lang.Object sync = new java.lang.Object();
synchronized (sync) {
sync.wait();
} catch (Exception e) {
System.err.println("ERROR: " + e);
e.printStackTrace(System.out);
I get the previous error message when I try to run this file. Other files are those generated by the IDL compiler
PS: Are you familiar with CORBA?

Similar Messages

  • Problems running a java program

    Hello,
    I have absolutely no java experience whatsoever, and I need to fix a program that suddenly stopped running properly after several years without problems. Basically, I have a perl script that calls a java program. Everytime I run this perl script from the web browser, the java program returns an internal error:
    # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://www.blackdown.org/cgi-bin/jdk # # Error ID: 5649525455414C53504143450E4350500024 # # Problematic Thread: prio=5 tid=0x804e680 nid=0x6d16 runnable #
    However, when I run the perl script command line, it runs fine. I added the -verbose option to the java call, and I discovered that the program stops running after it opens the .jar files but before it loads them .... these files have full read permissions, so I don't think that's the problem. Any ideas?
    Thanks!

    ...fix a program that suddenly stopped running properly after several years without problems.Which means either the program changed or the environment changed. I would guess the environment. The most likely possibilities: new version of the operating system, new version of perl, new version of java. Also possible: new version installed of any of the previous without removing older versions, new software not associated with the first, new mapped drives and/or changed env vars.

  • Some differences in Java settings giving me problems running a java program

    Hello,
    We have a Java app in our web-site. We haven't done that app our self and it has been working for quite some time.
    Now on my computer the java app loads just nicely.
    But for other users there java app crashes. So basically there has to be somekind of settings problem between.
    But we have checked the settings and I simply can't find the difference.
    The other users keep getting error that class not found.
    Debug print:
    security: Certificate has been verified with Internet Explorer ROOT certificates successfully
    security: Valid certificate from HTTPS server
    security: Adding certificate in Deployment session certificate store
    security: Added certificate in Deployment session certificate store
    security: Saving certificates in Deployment session certificate store
    security: Saved certificates in Deployment session certificate store
    network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment session certificate store
    network: Cache entry not found [url: https://site.xxx.com/EMS/classes/chart/Chart/class.class, version: null]
    network: Connecting https://site.xxx.com/EMS/classes/chart/Chart/class.class with proxy=DIRECT
    network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment session certificate store
    network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment session certificate store
    basic: load: class chart/Chart.class not found.
    load: class chart/Chart.class not found.
    java.lang.ClassNotFoundException: chart.Chart.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.lang.ClassNotFoundException: chart.Chart.class
    Ignored exception: java.lang.ClassNotFoundException: chart.Chart.class
    So you guys have any idea what setting could be wrong between my and the other users machines.
    We have Windows Xp sp3 and Internet Explorer 8 in use.
    I actually made a clean Xp install the otherday. Installing latest java and no security settings added from domain. Also I put the site on trusted sites and allowed all in IE. And I still got that error in that new clean Xp install. On my personal computer the Java app still works just fine. Unlucky the one who has done the Java app is not able to help us.

    Hello,
    I downloaded the jar-file and opened it with Winzip. The class in question was in the jar-file.
    I also put logging on in my computer where the App is working.
    My debug print:
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value null
    security: property package.definition new value com.sun.javaws
    security: property package.definition value com.sun.javaws
    security: property package.definition new value com.sun.javaws,com.sun.deploy
    security: property package.definition value com.sun.javaws,com.sun.deploy
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@291aff
    network: Cache entry found [url: https://site.xxx.com/EMS/classes/chart/Chart.class, version: null] prevalidated=false/0
    network: Connecting https://site.xxx.com/EMS/classes/chart/Chart.class with proxy=DIRECT
    network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
    security: Loading Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
    security: Loading Deployment SSL certificates from C:\Documents and Settings\me\Application Data\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loaded Deployment SSL certificates from C:\Documents and Settings\me\Application Data\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if SSL certificate is in Deployment permanent certificate store
    network: Connecting https://site.xxx.com/EMS/classes/chart/Chart.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if SSL certificate is in Deployment permanent certificate store
    network: ResponseCode for https://site.xxx.com/EMS/classes/chart/Chart.class : 304
    network: Encoding for https://site.xxx.com/EMS/classes/chart/Chart.class : null
    network: Disconnect connection to https://site.xxx.com/EMS/classes/chart/Chart.class
    network: Cache entry not found [url: https://site.xxx.com/EMS/classes/, version: null]
    network: Cache entry found [url: https://site.xxx.com/EMS/classes/bar/Bar.class, version: null] prevalidated=false/0
    network: Connecting https://site.xxx.com/EMS/classes/bar/Bar.class with proxy=DIRECT
    network: Connecting https://site.xxx.com/EMS/classes/bar/Bar.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
    network: ResponseCode for https://site.xxx.com/EMS/classes/bar/Bar.class : 304
    network: Encoding for https://site.xxx.com/EMS/classes/bar/Bar.class : null
    network: Disconnect connection to https://site.xxx.com/EMS/classes/bar/Bar.class
    network: Cache entry found [url: https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class, version: null] prevalidated=false/0
    network: Connecting https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class with proxy=DIRECT
    network: Connecting https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
    network: ResponseCode for https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class : 304
    network: Encoding for https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class : null
    network: Disconnect connection to https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class
    network: Cache entry found [url: https://site.xxx.com/EMS/classes/xaxial/XAxial.class, version: null] prevalidated=false/0
    network: Connecting https://site.xxx.com/EMS/classes/xaxial/XAxial.class with proxy=DIRECT
    network: Connecting https://site.xxx.com/EMS/classes/xaxial/XAxial.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
    network: ResponseCode for https://site.xxx.com/EMS/classes/xaxial/XAxial.class : 304
    network: Encoding for https://site.xxx.com/EMS/classes/xaxial/XAxial.class : null
    network: Disconnect connection to https://site.xxx.com/EMS/classes/xaxial/XAxial.class
    network: Cache entry found [url: https://site.xxx.com/EMS/classes/serie/Serie.class, version: null] prevalidated=false/0
    network: Connecting https://site.xxx.com/EMS/classes/serie/Serie.class with proxy=DIRECT
    network: Connecting https://site.xxx.com/EMS/classes/serie/Serie.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
    network: ResponseCode for https://site.xxx.com/EMS/classes/serie/Serie.class : 304
    network: Encoding for https://site.xxx.com/EMS/classes/serie/Serie.class : null
    network: Disconnect connection to https://site.xxx.com/EMS/classes/serie/Serie.class
    basic: Applet loaded.
    basic: Applet resized and added to parent container
    basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 151766 us, pluginInit dt 14982493 us, TotalTime: 15134259 us
    basic: Applet initialized
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@291aff
    basic: Applet made visible
    basic: Starting applet
    basic: completed perf rollup
    basic: Applet started
    basic: Told clients applet is started
    NullPointerException in interval part
    NullPointerException in interval label part
    Lot more security messages in this.

  • Running a java program from an icon

    I want to run my program from an icon on my desktop. I have a .bat file that I've built a shortcut to and it works.MY GUI program does display and run when I click on the icon. The problem is that the DOS window also shows up behind my GUI.
    Is there anyway to prevent the DOS window from showing? Or is there another way to run a Java program without resorting to a DOS command line or running it through FORTE or another IDD?

    Chris's solution worked well, with one small problem. Once my GUI starts, it takes up the whole screen. Normally when I run it, it appears as a small window.
    not a big problem, I can reduce it easily after it starts. But does anyone know a way to make it come up in the reduced size it norally comes up in when I run it from my IDE?

  • I am not able to run the java Program

    Hi All,
    I am not able to run a java program... I am able to complie the program sucessfully when i am trying to run it i am getting a error:
    Exception  in thread "main" java.lang.NoClassFoundError : filename
    i have complie and run my programs frequently but now i am not able run my prevoius examples also ...
    Can u any body help me out...... I have also update the latest version of JRE but still my problem is not sloved.
    Thanks & Regards,
    Ravi

    Make sure you take package structure into account.
    If you have say
    package testing.things;
    public class Test
        public static void main(String[] args)
            System.out.println("World Hello");
    }in file Test.java, you compile it with (assuming your current working directory is at the folder in which the source file is located).
    javac -d . Test.javaand run it with
    java testing.things.TestThe -d . option creates the output at the current directory (with a folder structure matching your package structure).
    #

  • Running a java program from a .asp page

    i'm looking for someone in the community that knows how to run a java program
    on a web server ( not an applet) from a asp page. The server as IIS 5 and the jre1.3.1
    any help or tips would be welcomed

    The following site explains in detail how you have to do it. I have done it and it works fine.
    If u still have problems, contact me at [email protected]
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;q167941

  • I start running a java program and when i switch users the sound doesnt work

    When I start running a java program or leave a game running and i switch users the sound doesnt work. I have been searching around the web and nobody seems to have an answer. This just recently started to happen. Please if anyone has any ideas that would be much appreciated and the problem is my computer its almost brand new. And my computer is completely up to date.

    Sony Mobile team has a separate community which can be found here.
    If my post answers your question, please click on "Accept as Solution"

  • How to compile and run a java program?

    I am getting this error message, what to do?
    Exception in thread "main" java.lang.NoClassDefFoundError:
    Thanks for you help.
    Ajay

    Hello,
    I believe that this error is caused because when you
    compile and run a java program, you have to use the
    same name that is next to public class. For example,
    the program name is next to the word public class.
    For example, if a program began like this:
    public class Concat
    then the name of the program in this case is Concat
    and when you compile it you type: javac Concat.java
    when you run it type: java Concat
    depending on the name of your program.and depending on whether the class is in a package. And depending on what directory you are currently in.
    Also depending on if you set your class path you might
    have to type the above like this: jdk1.2.1\bin\javac
    Concat.java to compile, and to run you would have to
    type jdk1.2.1\bin\java Concat where you would replace
    Concat with the name of your program and replace
    jdk1.2.1 with the name of your version of java, that
    is again if you do not have your classpath set. Hope
    this helps.Your examples have nothing to do with whether the CLASSPATH is set--only with whether the PATH is set. And, it may not be jdkXXX\bin. The path to the JDK (in this case, to javac and java executables) could be anything. Classpath should be set on the command line. The OP probably did NOT set a classpath on the command line (preferred), or in the environment variables.
    Also, make sure you did not forget to put:
    public static void main(String[ ] args)
    on the line underneath the line where it says "public
    class Concat" where Concat is the name of your
    program. Again, I hope this helps.Irrelevant (with the info we have from the OP so far). The error says that the JVM can't even find the class--not that the class doesn't have a main. The "main" referred to in the error message is within the JVM itself.
    OP: Did you fix your problem? If not, what directory are your files in? Are they in a package? What command are you typing to get that error? That is, please tell us your entire command line.

  • Error message when try to run copied java program

    Hi Java Guru,
    Can somebody help me with this issue ?
    I was copy my java source from java_ulangan2 to java_ulangan20, when i tried to run the java program, i get an error message.
    Below is the error message:
    05/01/2010 1:02:42 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [003]Deployment aborted
    Settings
    SDM host : wfmdev
    SDM port : 50018
    URL to deploy : file:/d:/DOCUME1/GunawanJ/LOCALS1/Temp/temp7843042886291622098Java_ulangan20.ear
    Result
    => deployment aborted : file:/d:/DOCUME1/GunawanJ/LOCALS1/Temp/temp7843042886291622098Java_ulangan20.ear
    Aborted: development component 'Java_ulangan20'/'local'/'LOKAL'/'0.2010.01.05.13.02.32'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Cannot deploy application local/Java_ulangan20.. Reason: Clusterwide exception: Failed to deploy application local/Java_ulangan20. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/Java_ulangan20. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine? (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    I really appreciate any kind of help.
    Thanks,
    JGN

    Hi John.
    In past i have faced same problem for the same task. Take help of the Basis team provide tham .ear file name and ask then to un-deploy the file from the server cluster.
    After this deploy your application again.
    Hope this may help you.....:)
    Deepak!!!

  • Stop and run a java program

    how can I stop then run a java program in java code?

    netcom_ wrote:
    You can do this from the command shell.I want to stop running the program by System.exit()Which will return a status code to the shell that launched your java app.
    then I would run the program lets say by command shell(in java),Huh?
    After your java app calls System.exit() you are back in the shell that launched the java app.
    The problem that all the code after the instruction
    System.exit is ignored so the command shell is not treated ,is there a solution,?You can use a shell script and use a loop.

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • Running a java program a set number of times

    This is a general question. Is it possible to make a java program run only 5 times for the sake of arguement.
    Basically I want to write a program that will give the user some flexibility when it will actually run another Java program, but I only want them to be able to say "not now' for a set number of times. When the last time comes the other program will launch. I was initially thinking of the Do Whilw loop, but this needs to work when the program is restarted.
    Program starts, it has 5 times it will run before it does something else(doesn't really matter now I think). User takes option "Not Now" and the program ends, but warns the user this will run 4 more times before you will need to do something.
    This process will repeat until the user takes the option "Ok install now" or the time limit expires and the install occurs anyway. Can someone point me in the right direction.

    ok I see so it's like one those programs that you download for free on the internet and they give you a set amount times to use it before you have to pay for it. but in this case when the number of times you use it equals 5 (or when the user clicks ok) a different java app will open automatically.
    My first thought would be to Write a Serialized object to disk using objectOutputStream that stores the number of times the application has been opened. and each time the program runs it checks for the serialized object and then you can do something like what I posted before. of course if were worried about security the user could always look for the object and erase it, if so then I guess we would have to come up with another plan of attack
    Hope this helps

  • Running a java program via a batch file

    I am unable to run a java program from a batch file that I created.
    spiderpackage.EntryPoint is a class file which I am trying to run with a -v option to output something.What should I do to get the output?
    echo ^<html^>^<body^>
    echo hello^<br^>
    call java spiderpackage.EntryPoint -v
    echo ^</body^>^</html^>

    This has nothing to do with java programming. Have a look at the windows help for the call command.
    The echo <html> stuff doesn't make sense. What's it for?
    The command in you batch file should be:
    java -cp . spiderpackage.EntryPoint -v
    assuming that java is in the system path, and the EntryPoint.class is in a directory called spiderpackage which is a subdirectory of your current working directory

  • Running a Java program at startup in Linux

    Hello
    How do I run a Java program at startup in Linux? I know in Windows I can put a .bat file in C:\Windows\Start Menu\Programs\StartUp\ directory, but in Linux I have no idea how it is done.
    Thank you,
    Mihai

    This is really a Linux question, not Java.
    And then it depends on the version of Linux you are using.
    Maybe this will help, otherwise you should try on a forum for your version of Linux.

  • Running a java program in a directory other than the current directory

    How do I run a java program that's located in a directory other than the current directory?
    There is a file Test.java in /dir1/subdir1. If my current directory is anywhere other than that directory, say /dir2/subdir2, I can compile Test.java by using:
    javac -classpath /dir1/subdir1 /dir1/subdir1/Test.java
    But when I try to run it with:
    java -classpath /dir1/subdir1 /dir1/subdir1/Test
    I get a java.lang.NoClassDefFoundError: \dir1\subdir1\Test
    Any thoughts?

    You need to specify just the name of the class you want to run. So java -classpath /dir1/subdir1 Test

Maybe you are looking for

  • Can't Login to Embedded Web Server for HP Officejet Pro 8600 N911g

    I have a HP Officejet Pro 8600 N911g that I am trying to access in order to update the adress book for the scanner but in order to do that I must login. I have never set up a user name or password for it. Is there a default username and password?

  • HT4124 How to connect MBP to projectors?

    How do I connect a 15" MacBook Pro (mid-2012) to a projector?

  • Entire system restore fails

    Everytime I tried to do an ENTIRE SYSTEM RESTORE from TM it failed after a few seconds. I have formated the TM unit with 1 GUID partition as apple recommend and chose one of my internal hard drives as Time Machine unit. I'm just checking and comparin

  • Pacman download freezes afer a while

    When I try to do a full system upgrade (after three months, by the way), with -Syu, pacman just stops downloading after a short while. Illustration: Total Download Size: 236.85 MB Total Installed Size: 4027.74 MB Proceed with installation? [Y/n] y ::

  • How to find JRE Version on client machine

    My client machine does not have any class file, they are running web pages on web Browser. We have some specific plug-in based on JRE Versions (e.g. JRE 5 or JRE 6). Also we do not have permission to run an applet on client machine as it�s a security