Problems running standalone java

I have been writing java applets for a while in editplus then compiling them with javac in editplus and viewing them with appletviewer through editplus. I have been given a java standalone program. It compiles fine with no error messages but when i try to run it with java i get the following error message:
java.lang.NoClassDefFoundError: Server1
Exception in thread "main"
Output completed (2 sec consumed) - Normal Termination
And the program doesn't run. Can anyone see why this is?
Any help will be greatly appreciated!

okay how would i go about correcting this problem?
Heres the code by the way:
import java.net.*;
import java.io.*;
public class Server1 {
public static void main(String [] args) {
ServerSocket s;
Socket clientsSocket;
try {
          s = new ServerSocket(5155);
          clientsSocket = s.accept();
          System.out.println(clientsSocket.getLocalAddress());
          System.out.println(clientsSocket.getInetAddress());
          System.out.println(clientsSocket.getPort());
          System.out.println(clientsSocket.getLocalPort());
          OutputStream out = clientsSocket.getOutputStream();
          InputStream in = clientsSocket.getInputStream();
          byte sendBuffer[] = {1, 2, 3, 4, 5, 6, 7, 8};
          out.write(sendBuffer);
          byte receiveBuffer [] = new byte [50];
          int lengthReceived = in.read(receiveBuffer);
          System.out.println("Received: " + lengthReceived + " bytes.");
          for (int i=0; i<lengthReceived; i++)
          System.out.println((char)receiveBuffer[i] + "\n");
          clientsSocket.close();
     catch (java.io.IOException e) { System.out.println(e.toString()); }

Similar Messages

  • Getting error while running standalone Java application related to Workflow

    Hi,
    I am using the following code
    import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
    import oracle.bpel.services.workflow.task.model.Task;
    import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
    import oracle.bpel.services.workflow.verification.IWorkflowContext;
    import java.util.List;
    public class CompleteUserTask {
         public static void main(String[] args) throws Exception{
         System.out.println("Classpath: "+System.getProperty("java.class.path","."));
         String userId = "jcooper";
         String password = "welcome1";
         String taskId = "";
         IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.JAVA_CLIENT);
         IWorkflowContext wfCtx = wfSvcClient.getTaskQueryService().authenticate(userId,password,oracle.tip.pc.services.identity.config.ISConfiguration.getDefaultRealmName(),null);
         Task task = wfSvcClient.getTaskQueryService().getTaskDetailsById(wfCtx,taskId);
         List assigneeUsers = task.getSystemAttributes().getAssigneeUsers();
         List assigneeGroups = task.getSystemAttributes().getAssigneeGroups();
    if ((assigneeUsers != null && assigneeUsers.size() > 1)
    || (assigneeGroups != null && assigneeGroups.size() > 0))
         task = wfSvcClient.getTaskService().acquireTask(wfCtx, taskId);
         task = wfSvcClient.getTaskService().updateTaskOutcome(wfCtx, task, "Approve");
    I have added wf_client_config.xml, wf_config.xml,is_config.xml to the classpath. While executing this java code, i am getting the following error
    <XMLAuthenticationService::authenticateUser> XMLAuthenticationService:: call authenticate
    <PCException::<init>> User is not found.
    <PCException::<init>> User "jcooper" is not found in realm "jazn.com"
    <PCException::<init>> Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    <PCException::<init>> ORABPEL-10509
    <PCException::<init>>
    <PCException::<init>> User is not found.
    <PCException::<init>> User "jcooper" is not found in realm "jazn.com"
    <PCException::<init>> Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
    Kindly help me out.
    Thanks,
    Gomathi

    Hi,
    I am not using OID. I am using only JAZN. I copied is_config.xml and wf_config.xml to classes folder where i am running standalone application and also i referred this to the classpath. Kindly do the needful.. I am struggling with this issue for past 3 days.
    Another thing is if i am giving the user name as "jcooper" it is throwing the error. If i give "oc4jadmin", then the issue resolved.
    kindly tell me what should i do inorder to login as jcooper instead of oc4jadmin
    Thanks,
    Gomathi
    Edited by: user647559 on Sep 15, 2008 4:37 AM

  • How to run standalone java file from weblogic server on Solaris

    Hi,
    We have a requirement to run a java file at a scheduled time in a day using cron scheduler on our linux server.
    We need to fetch data from the database & perform some business logic in this standalone JAVA file.
    Our application has an EAR which is deployed on Weblogic 10.3 server & in our application, we are utilizing the datasource created in that domain.
    Now, we have created a standealone Java file & used exisitng datasource (without Hibernate) of the domain with the help of below forums,
    Use DataSource of weblogic in a standalone Java file
    able to achieve the same.
    I've bundled this JAVA in application WAR & depoyed on the same domain where datasource is created.
    Now, how can I execute this file from anywhere on the server using weblogic classpath.
    Please help on the same in implementation.
    Thanks,
    Uttam

    If the Java application must be stand-alone you must not deploy it on WebLogic, then WebLogic will manage its lifecycle.
    In this case you can use the CommonJ API and use the timermanager if it must run on a certain time. More information
    of how to do this can be found here: http://middlewaremagic.com/weblogic/?p=5569
    If you keep the Java application stand-only and want to use a cron job you can follow the example presented here: http://middlewaremagic.com/weblogic/?p=7065
    Note that the example runs a WLST script, but you can follow the same steps to run your Java application.

  • Problem Running Hello.java

    Hi All,
    I am facing problem to run Hello.java.
    The following exception accurs when I try to run it.
    java.lang.RuntimeException: RegOpenKeyEx: The system cannot find the file specified. (2)
         at com.ibm.speech.recognition.RecoImpl.initialize(Native Method)
         at com.ibm.speech.recognition.RecoImpl.<init>(RecoImpl.java:163)
         at com.ibm.speech.recognition.RecoImpl.make(RecoImpl.java:103)
         at com.ibm.speech.recognition.IBMEngineCentral.makeModes(IBMEngineCentral.java:112)
         at com.ibm.speech.recognition.IBMEngineCentral.createEngineList(IBMEngineCentral.java:179)
         at javax.speech.Central.availableRecognizers(Central.java:455)
         at javax.speech.Central.createRecognizer(Central.java:343)
         at hello.Hello.main(Hello.java:170)
    java.lang.NullPointerException
         at hello.Hello.main(Hello.java:171)
    Can any body tell me what should I do.
    Thanks in advance,
    Regards,
    Haider Ali

    The solution is simple, but only once have I seen it up in the forums, so I am on a campaign to put it in a couple more places.
    Solution: download the via voice runtime from IBM's Alphaworks website. I don't have the link handy, but it is pretty easy to find. Something like http://alphaworks.ibm.com.
    Just make sure you not only get all of the SDKs and such, but also the ACTUAL runtime. They say something about needing the runtime on the download page, but it is in the fine print. It is 'VVRTDUS10.ZIP' and is around 170MB or so. Once installed, if you still have a problem, try putting the 'bin' directory in the via voice folder in your PATH (not CLASSPATH) environment variable.
    That did the trick for me.
    Bye now.

  • Problems running any Java applets

    I have tried uninstalling, and re-installing the latest version of Java...
    any time I try and run an applet I get this error...
    The publisher cannot be verified by a trusted source. Code will be treated as unsigned.
    Name: loader
    Java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
    at java.security.KeyStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
    at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
    at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
    at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(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 sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    I tried looking at the java control pannel, and when I clicked on security, then certificates and I got this error
    General Exception
    java.io.EOFException
    at java.io.DataInputStream.readInt(Unknown Source)
    at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
    at java.security.KeyStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
    at com.sun.deploy.panel.CertificatesInfo.reset(Unknown Source)
    at com.sun.deploy.panel.CertificatesInfo.<init>(Unknown Source)
    at com.sun.deploy.panel.CertificatesDialog.<init>(Unknown Source)
    at com.sun.deploy.panel.SecurityPanel.certsBtnActionPerformed(Unknown Source)
    at com.sun.deploy.panel.SecurityPanel.access$000(Unknown Source)
    at com.sun.deploy.panel.SecurityPanel$1.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(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)
    The only way I am able to run a java applet is Unsigned...

    I am having this same exact problem and receiving the same error anytime I try to run a java appet within any browser.
    I cannot locate a keystore file or any other security certificate files. Also under Control Panel, If I run the Java Control Panel and then select the Security tab/certificates. I see a similar error and do not see any certificates. Any ideas on how to correct this.

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

  • Problems running ImageExample.java

    I'm trying to run ImageExample.java
    The file compiles but when I want to execute the class I keep getting the same error:
    java.lang.NoClassDefFoundError: oracle.sql.CustomDatum
    I checked my CLASSPATH and it seems ok, I've included ordim817.zip, runtime.zip and classes111.zip.
    What can be wrong?
    Thanx
    null

    CustomDatum.class is included in classes111.zip. Double-check your CLASSPATH, making sure the path for your classes111.zip comes before other library paths.

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

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

  • Problem running my Java apps in my LG phone. Please help!

    Hi all!!
    I am quite new to the world of J2me, altough I've been coding Java for quite a few years now.
    Recently I bought a LG u 8120 phone with Java-support so I decided it was time to step into the mobile Java-world.
    Now I have written my first small app, a simple timer application which my phone (strangely enough) does not already have.
    So what happens is this : I create my app on my PC and package it with the WTK into a jar -file and a jad-file which i transfer to the phone.
    After this I can see the name of my app in the list of available programs in the phone. But when I try to run it: Nothing. The Java logo shows up for a few seconds and then I am tossed back to the menu.
    I have thought of the following as possible problems:
    1. the 8120 does not support MIDP2.0
    2. I am doing something wrong transfering the files
    3. I have missed out on one or several necessary steps in the process
    Anyone who have developed Java apps for LG phones who can give me some hints?
    I've used the Sun J2ME Wireless Toolkit 2.2 with MIDP2.0 and CLDC1.1 .
    The apps works fine in the emulator. The problem starts when I want to run it in the phone. The phone I've tried is an LG u8120. LG apparently does not want to make life easy for its customers, so there is no support for transfering Java apps in the vendor-supplied software. I suppose that's because they want you to only download stuff from their site. However, after surfing around on some discussion forums for a while I found a program called G-thing which can be used to upload Java apps to LG-phones via USB.
    Any help is very appreciated!
    Thanks,
    Sarah

    Thanks,
    I have tried this and ruled out some of the possible causes.
    When I added some more exception handling, I could see that a "java.lang.IllegalArguenException" is thrown.
    When I ran the AudioDemo package that came with WTK2.2 I noticed that the examples that uses WAV-files do not work while the rest works fine.
    My new theory is now that the u8120 does not support the WAV-format, so I will try with an mp3 instead and see what happens.
    Anyone who knows if LG-phones support WAV-format?
    /Sarah

  • Having Problems Running my Java Progs

    Hey guys,
    I keep getting the following error message when I try to run any of my java programs.
    Exception in thread "main"
    java.lang.NoClassDefFoundError: HelloApp
    this is the app that im trying to run;
    public class HelloApp
         public static void main (String[] args)
              System.out.println("Hello, World");
    }I cant see anything wrong with this piece of code. Ive definately saved the code as HelloApp.java. I've tried several different programs all with the same result. Does anyone have any ideas on why this is happening?
    Thank You
    Jaz

    OK, classpath is different from path, it's specifically used by java to locate .class files.
    Apparently some Windoze versions do not automatically include the local directory in the classpath - or may not have a classpath variable set until you do it manually.
    So, the easiest way to see if this is your problem is to set the classpath in the command line like so:
    java -cp C:\WhereIHidMyFiles HelloApp
    (obviously, substitute the correct directory name above)

  • Impossible JDNI problem with standalone java app and WAS

    I'm working with this IBM java application called Extended Search (ES) -. I know that not many people will have used it, but my problem is more to do with JNDI and JREs - becoming desperate now as I have a deadline looming! Hoping someone can help.
    Anyway, I have to write a class that is loaded by Extended Search which does a JNDI lookup to an EJB running on a WAS server on the same machine.
    ES runs on what looks like a cut-down version of the IBM JRE.
    Despite ES itself being an EJB client, my class, within the context of ES, does not have access to naming.jar and all the other libraries I need to set the intial context and make the JNDI call.
    If I run my class outside of ES from eclipse, with the required JARs as recommended by other posters to this forum, I can easily make the call. I have done versions that work with either the Sun JRE or the IBM JRE that comes with Eclipse.
    In ES, I have attempted to copy in the jars I need as follows:
    - ecutils.jar
    - ibmorb.jar
    - j2ee.jar
    - lmproxy.jar
    - naming.jar
    - namingclient.jar
    - ras.jar
    - sas.jar
    - wsexception.jar
    - wssec.jar
    I resolved all of the noclassdeffound errors I was getting on trying to make the JNDI lookup, but now it appears to be calling a method from an object in the ES cutdown JRE which does not exist:
    An error occurred:
    com.ibm.CORBA.iiop.ORB: method createObjectURL(Ljava/lang/String Lcom/ibm/CORBA/iiop/ObjectURL; not found
    java.lang.NoSuchMethodError: com.ibm.CORBA.iiop.ORB: method createObjectURL(Ljava/lang/String Lcom/ibm/CORBA/iiop/ObjectURL; not found
    at com.ibm.ws.naming.util.WsnInitCtxFactory.parseIiopUrl(WsnInitCtxFactory.java:1731)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.parseBootstrapURL(WsnInitCtxFactory.java:1475)
    at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:371)
    at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
    at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
    at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
    at javax.naming.InitialContext.lookup(InitialContext.java:360)
    at com.ibm.bts.es.srv.links.CHIPESLink.search(CHIPESLink.java:162)
    This problem is driving me nuts. I find it hard to believe that its so difficult to make a call from one bloody IBM product to another, just because JNDI seems to require the entire WAS library dir to work and I don't understand why JNDI has to be so properitary to specifc appservers (sorry, just letting my frustration show there ;)
    Does anyone have any suggestions of how I can get round this? I have limited control over ES - and it won't even start up if I add the WAS lib dir to its classpath.
    Many thanks for any advice
    Marc

    i couldn't agree more.
    well, actually the core was server isn't too bad - but its ludicrous that application clients have to be this complicated. if sun can manage it with only two jars, then why does ibm need 17???
    i tried adding the extra ones from the list, but same problem. i can't help thinking i've brought over older versions of the corba classes, but its hard to identify what jar is responsible for what.
    i've logged a bug with ibm support now. considering ditching the ejb and placing the jdbc code directly into the extended search classes. but if i do that, i lose my connection pooling etc - performance is going to be rubbish.
    i can't believe i've spent days working on one jndi call. :(

  • Problem Running a java applet from an HTML page

    I can run my applet at the command prompt with:
    appletviewer coffee.html
    But when I try and open the Coffee.html by opening
    the page in Internet Explorer I get the following message:
    Can't find Database driver class: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
    Code: createcoffees.java
    import java.applet.*;
    import java.sql.*;
    public class CreateCoffees extends Applet{
         public void init() {
              Statement stmt;
              Connection con;
              try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              } catch(java.lang.ClassNotFoundException e) {
                   System.err.print("ClassNotFoundException: ");
                   System.err.println(e.getMessage());
              try {con = DriverManager.getConnection("jdbc:odbc:hq","afm", "afm");
                   stmt = con.createStatement();                                   
                          stmt.executeQuery("SELECT * FROM RM");
                   stmt.close();
                   con.close();
              } catch(SQLException ex) {
                   System.err.println("SQLException: " + ex.getMessage());
    }

    Is your jdbc-odbc driver properly loaded? Its very clear that its a class not found exception which is thrown by this:
    try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());

  • Problem running with "java class"

    Hi:
    I developed an application in Forte. It works as expected within the IDE. I would like to run it outside the IDE with "java application.class". When I try this, it cannot find many modules. I realize I need to set the classpath, but don't know what to set it to.
    Please help.
    vjktm

    r u using windows?
    if so
    try this
    open up the dos
    then type the following command
    set classpath = drive:\directory\.
    drive - your working drive
    directory - where you put ur java source and class files
    make sure you have the . at the end of the cammand.

  • Problem running servletsin java web server

    After i compile my servlets and copy the class file in the servlets folder of the web server, i run the server by the
    URL http://localhost:8080.
    The server page of congratulations message is displayed.after that i give the URL
    http://localhost/servlets/servletname
    the following error is displayed.
    not found error(404)
    The file that you requested could not be found on this server.If you provided the URL,please notify the administrator of that server of this error.

    You forgot to put the port number in your URL. Try http://localhost:8080/servlets/servletname.

Maybe you are looking for