Class not found

OS - Ubuntu Gutsy 7.10
Kernel - 2.6.22-14-generic
NB - v5.5.1
Java version - java version "1.5.0" / gij (GNU libgcj) version 4.2.1 (Ubuntu 4.2.1-5ubuntu5)
Hi people, I've been working on this problem for a few hours now and htink I'm missing the obvious:
This is my source directory path:
/home/buster/NB_Projects/Team_CB_UML_080407_v3.2_Final_mb/CB_UML_Editor/src/teamcbuml/helpDocs/index.htm
I am trying to implement HTML help documentation to my UML editor in NetBeans:
My Help class source is as follows:
* Help - Provides user documentation
* Created on 06 March 2008, 00:22
package teamcbuml;
import java.io.*;
import java.net.URL;
import javax.swing.event.HyperlinkEvent;
* @author  M.Beattie
public class Help extends javax.swing.JFrame {
    private URL helpURL;
    /** Creates new form Help */
    public Help(URL hlpURL) {
        helpURL = hlpURL;
        try {
            HelpDisplayArea.setPage(helpURL);
        catch (Exception ex) {
            ex.printStackTrace();
        initComponents();
        this.setLocationRelativeTo(null);
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        HelpScrollPane = new javax.swing.JScrollPane();
        HelpDisplayArea = new javax.swing.JEditorPane();
        companyLogo = new javax.swing.JLabel();
        HelpContentsButton = new javax.swing.JButton();
        HelpCloseButton = new javax.swing.JButton();
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("UML Editor Help");
        HelpScrollPane.setBackground(new java.awt.Color(255, 255, 255));
        HelpScrollPane.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        HelpDisplayArea.setEditable(false);
        HelpDisplayArea.addHyperlinkListener(new javax.swing.event.HyperlinkListener() {
            public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent evt) {
                HelpDisplayAreaHyperlinkUpdate(evt);
        HelpScrollPane.setViewportView(HelpDisplayArea);
        companyLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/teamcbuml/images/logo.gif")));
        HelpContentsButton.setText("Contents");
        HelpContentsButton.setToolTipText("Return to contents page");
        HelpContentsButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                HelpContentsButtonMouseClicked(evt);
        HelpCloseButton.setText("Close");
        HelpCloseButton.setToolTipText("Close help documentation");
        HelpCloseButton.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                HelpCloseButtonMouseClicked(evt);
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(HelpScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 410, Short.MAX_VALUE)
                        .addContainerGap())
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(companyLogo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 198, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(HelpCloseButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(HelpContentsButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(83, 83, 83))))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(companyLogo))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addComponent(HelpContentsButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(HelpCloseButton)))
                .addGap(14, 14, 14)
                .addComponent(HelpScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                .addContainerGap())
        pack();
    }// </editor-fold>//GEN-END:initComponents
    private void HelpContentsButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_HelpContentsButtonMouseClicked
        /** Select contents index */
        URL tempURL;
        tempURL = HelpDisplayArea.getPage();
        try{
            HelpDisplayArea.setPage(helpURL);
        catch (Exception ex) {
            ex.printStackTrace();
    }//GEN-LAST:event_HelpContentsButtonMouseClicked
    private void HelpDisplayAreaHyperlinkUpdate(javax.swing.event.HyperlinkEvent evt) {//GEN-FIRST:event_HelpDisplayAreaHyperlinkUpdate
        /** Select page to display */
        if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
        try{
            HelpDisplayArea.setPage(evt.getURL());
        catch (Exception ex) {
            ex.printStackTrace();
    }//GEN-LAST:event_HelpDisplayAreaHyperlinkUpdate
    private void HelpCloseButtonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_HelpCloseButtonMouseClicked
        /** Close Help Documentation */
        this.dispose();
    }//GEN-LAST:event_HelpCloseButtonMouseClicked
     * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                URL index = ClassLoader.getSystemResource("/helpDocs/index.htm");
                new Help(index).setVisible(true);        
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton HelpCloseButton;
    private javax.swing.JButton HelpContentsButton;
    private javax.swing.JEditorPane HelpDisplayArea;
    private javax.swing.JScrollPane HelpScrollPane;
    private javax.swing.JLabel companyLogo;
    // End of variables declaration//GEN-END:variables
}Everything compiles without error and the program runs, however when I click my button for the Help Interface, it displays everything except the index.htm info and throws a few errors. Mainly one error (NullPointerException) and I think the rest are subsequent errors. I figure it is something to do with the way I have defined the source path but am struggling to get anywhere with it. I have researched the net but finding something totally relevant to NetBeans I am struggling with.
Any advice is much appreciated.
Thanks

Just to clarify, the following is the code that is flagged as erroneous:
/** Creates new form Help */
    public Help(URL hlpURL) {
        helpURL = hlpURL;
        try {
            HelpDisplayArea.setPage(helpURL);
        catch (Exception ex) {
            ex.printStackTrace();
        initComponents();
        this.setLocationRelativeTo(null);
        }The line complained about is:
HelpDisplayArea.setPage(helpURL);

Similar Messages

  • Installation problem on redhat 6.0, class not found

    I have followed the instructions for installing oracle 8i. When i run runIns.sh I get the following error message:
    class not found: oracle.sysman.oii.oiic.OiicInstaller
    Does anyone know what this means? and what do i have to do?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by am():
    probably you don't use jre116_v5. Install it and alter all symlinks to the old jre/jdk.
    Note: Don't use any jdk at all or any jre which is newer than jre116_v5!<HR></BLOCKQUOTE>
    Thanks for the reply, but, yes, I've already done that.
    null

  • For weeks I have been viewing a doggy day care via their web cam.  This weekend I upgraded to Lion and have been unable to view the center since.  I get an error message for java webcam class not found.  All of my software is up to date--suggestions?

    For weeks I have been viewing a doggy day care center via their web cam.  This weekend I upgraded to Lion and have been unable to view the center.  I get an error message for Java plug-in 1.6.0_29 ....webcam class not found.  Any suggestions on how to fix this?

    Sorry, don't know what else to suggest unless there's a URL to the problem stream that someone here can try. Otherwise we can't test it to try and determine what might be wrong.
    BTW, make sure they're testing it with a Mac, not with a Windows system. If they test only with Windows, what they say is or is not working doesn't mean much.
    Regards.

  • Class Not Found in Server Application

    I have set up a basic server application. It contains three files namely
    Arith.java (implements the Remote interface)
    ArithImpl.java (implements Arith.java the server) and
    ArithApp.java which is the client Application
    All of these are in the same package. I have compiled all of these files and I execute the rmic ArithImpl command from within the ArithImpl.java file via Runtime.getRuntime.exec(...);
    The stub and skeleton files are generated and still I get a class not found exception. I have checked the class path and these files are within the class path.
    If anyone could help me I'd greatly appreciate it. Thanks
    public class ArithImpl extends UnicastRemoteObject implements Arith{
    public static final String HOST_NAME = "localhost";
    public static final String ROOT = "C:/Work/Thesis~1/LearningRMI/";
    public static final String CLASSPATH = ROOT;
    public static final String POLICY_FILE = CLASSPATH+"policies/rmi.policy";
    public static final String RMI_LOCATION = "C:/Progra~1/java/jdk1.5.0_03/bin/";
    String objectName;
    public ArithImpl(String s) throws RemoteException{
         super();
         objectName = s;
    public int[] add(int[] a, int[] b) throws RemoteException {
         int c[] = new int[10];
         for (int i=0; i<10; i++)
              c[i] = a[i]+b;
         return c;
    public static void main(String[] args) {
         System.setProperty("java.security.policy",POLICY_FILE);
         System.setProperty("java.class.path",CLASSPATH);
    String rmic = RMI_LOCATION+"rmic -vcompat -classpath "+CLASSPATH+" "+ArithImpl.class.getName();
    String registry = RMI_LOCATION+"\\rmiregistry";
    try{
    Runtime rt = Runtime.getRuntime();
    rt.exec(rmic);
    rt.exec(registry);
    catch (IOException e){
    e.printStackTrace();
    RMISecurityManager sm = new RMISecurityManager();
    System.setSecurityManager(sm);     
    try{
    Naming.rebind("//"+HOST_NAME+"/ArithServer", obj);
    System.out.println("ArithServer bound in registry");
    catch (Exception e){
    e.printStackTrace();

    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: Arith
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:385)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
         at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
         at java.rmi.Naming.rebind(Naming.java:160)
         at ArithImpl.main(ArithImpl.java:106)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
         java.lang.ClassNotFoundException: Arith
         at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
         at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:375)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
         at sun.rmi.transport.Transport$1.run(Transport.java:153)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: Arith
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at sun.rmi.server.LoaderHandler.loadProxyInterfaces(LoaderHandler.java:707)
         at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:651)
         at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:588)
         at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
         at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
         at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
         at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         ... 9 more

  • "Java Class not found in classpath" Error in DESIGNER

    Hello All,
    I'm trying to connect in Designer using a JDBC connection to MS SQL Server 2008.  As per the instructions, I updated my jdbc.sbo file with the path to the existing two JAR files.  However, I still get the following error when I try and connect in Designer:  "Java Class not found in classpath : C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\dataAccess\connectionServer\jdbc\Drivers\sqlsrv".  Of course, this error includes the drive path with the location to my JAR files.  Any help in resolving this nagging issue is very GREATLY appreciated.  Also, if anyone needs it I can post a copy of the jdbc.sbo file to this thread.
    Thank you,
    Pankaj

    Stratos,
    Your suggestion didn't help.  I tried to connect after restarting my machine and I still get the error.  And, I've also tried adding a connection to MS SQL Server 2005 using this JDBC driver, and that didn't help either.  Any other suggestions?  Would it help to see my "jdbc.sbo" file?  Thanks again for your and everyone else's help, and I look forward to your reply.
    Regards,
    Pankaj

  • Lookout 6.0.1.: Class Not Found when trying to open project on another PC

    I am using the same version on both PC's, but when I move the file over and run it, I get "Class not found!". Then "Error running process file".When running the lookout source file I get the following:
    Lookout Process File Compiler Version 6.0.1 (build 1)
    Copyright National Instruments 1992-2004  All rights reserved.
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(324): error: Class not found: DirectLogic
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(1977): error: Class not found: Meter
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(57): error: Object is not defined: DL1
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(667): error: Object is not defined: Meter1
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(670): error: Object is not defined: Meter2
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(673): error: Object is not defined: Meter3
    C:\Documents and Settings\testing\Desktop\Latest Lookout\lprocess2.lks(676): error: Object is not defined: Meter4
    I have also tried to open on 6.1 with similar results.
    I am familiar with lookout, however I have taken this project over so I am not sure what I need to do from here.

    There are two object (DirectLogic and Meter) that are not present on the amchine you are moving the process to.   If the same version of Lookout, you might be able to just copy the cbx files.
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Keep getting VncViewer.class not found error when trying to use Windows 7

    Greetings,
    I have no issue accessing the OVM Manager 2.2 with OEL 5.4 x86_64 with the latest Java release from ULN. But when I use a Windows 7 client ( x86) with the Sun Java 6 Update 18 I get the following error when trying to access the Console of a VM Guest:
    Java Plug-in 1.6.0_18
    Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM
    User home directory = C:\Users\deverej
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class VncViewer.class not found.
    java.lang.ClassNotFoundException: VncViewer.class
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.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)
    Caused by: java.io.IOException: open HTTP connection failed:http://141.144.112.202:8888/OVS/faces/app/VncViewer/class.class
         at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 7 more
    Exception: java.lang.ClassNotFoundException: VncViewer.class
    I am curious fi I should use only a specifc Java Engine with IE 7 or the latest Firefox browers.

    Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
    J2SE Enviornment 5.0 Update 15
    Java 6 Update 17

  • Class not found in applet using 2 jar files

    I have an applet which has been working for years as a stand alone or connecting directly to a derby database on my home server. I have just changed it to connect to MySQL on my ISP server via AJAX and PHP.
    I am now getting a class not found error in my browser, probably because I'm stuffing up the class path.
    The HTML I am using to call the applet is:
    <applet code="AMJApp.class"
    codebase="http://www.interactived.com/JMTalpha"
    archive="AMJ014.jar,plugin.jar"
    width="500"height="500"
    MAYSCRIPT style="border-width:0;"
    name="jsap" id="jsap"></applet>The AMJ014.jar contains the applet and supporting class files.
    The error message is strange to me because it refers to a class I noticed on another web page but which has nothing to do with my applet. Anyway, the message in full is:
    load: class NervousText.class not found.
    java.lang.ClassNotFoundException: NervousText.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: NervousText.class
    java.lang.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         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.defineClass(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
         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.UnsupportedClassVersionError: AMJApp : Unsupported major.minor version 51.0

    Thanks again.
    The page code is:
    <html>
    <head>
      <title>Applet to JavaScript to PHP</title>
    </head>
    <body>
    <script type="text/javascript">
    function updateWebPage(myArg)
    document.getElementById("txt1").innerHTML=myArg;
    if (myArg=="")
      document.getElementById("cbxItem").innerHTML="";
      return;
    if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
    else
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    xmlhttp.onreadystatechange=function()
      if (xmlhttp.readyState==4 && xmlhttp.status==200)
        document.getElementById("cbxItem").innerHTML=xmlhttp.responseText;
    xmlhttp.open("GET","putitem.php?id="+myArg,true);
    xmlhttp.send();
    </script>
    <form>
    <table border=1 align='center' cellpadding=0 cellspacing=0 >
    <tr><td style='text-align:center; background-color:#C0C0C0'>Compiled Java Applet</td></tr>
    <tr><td><applet code="AMJApp.class" codebase="http://www.interactived.com/JMTalpha" archive="AMJ014.jar" width="500"height="500" MAYSCRIPT style="border-width:0;" name="jsap" id="jsap"></applet> </td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML Textbox filled by JavaScript</td></tr>
    <tr><td><textarea style='width:500px; height:50px' name='txt1' id='txt1'>Query goes here</textarea></td></tr>
    <tr><td style='text-align:center; background-color:#C0C0C0'>HTML diagnostic messages rendered by PHP script</td></tr>
    <tr><td><div id="cbxItem">PHP info will populate this space</div></td></tr>
    </table>
    </form>
    </body>
    </html>The URL of the problem page is:
    http://www.interactived.com/JMTalpha/AMJTest.htm
    The code in the page is based on the following test page, which works:
    http://www.interactived.com/test5Applet.htm
    And the Applet, before I made any changes can be seen at this address:
    http://www.interactived.com/jartest0906.htm
    Thanks again for you interest.
    Edited by: 886473 on 21-Sep-2011 00:47

  • Class not found error while accessing a Web Service

    Hi All,
    Im getting a Class not found error while doing method calls of a third party API.
    The required jars(axis.jar) are set in the weblogic 8.1 classpath and I tried putting those jars(axis.jar) in my application lib folder also, but dint help. Please help me with a solution.
    I'll paste the exception logs here by
    java.lang.NoClassDefFoundError: org/apache/axis/AxisFault
    at java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/CodeSource;)Ljava/lang/Class;(SecureClassLoader.java:123)
            at java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;(URLClassLoader.java:251)
            at java.net.URLClassLoader.access$100(Ljava/net/URLClassLoader;Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class;(URLClassLoader.java:55)
            at java.net.URLClassLoader$1.run()Ljava/lang/Object;(URLClassLoader.java:194)
            at jrockit.vm.AccessController.do_privileged_exc(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;I)Ljava/lang/Object;(Unknown Source)
            at jrockit.vm.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Unknown Source)
    Thanks
    Noufal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    Verify the 3rd party class files names are correctly written in your program. Sometimes wrong case might be the reason.
    bye for now
    sat

  • Error: initialization error: file java\lang\Object.class not found

    when the error listed my classpath's its not the same list that is in my Windows XP environment variable list?
    I am on 9.0.3
    I am assuming I have to set some varible to my new jdk\bin directory. I reinstalled it. I have set it to use jdk 1.4 using the ojvm tool a while back.

    Please help!!
    I did change the jdev.conf file setting:
    SetJavaHome /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home
    and I still get this error:
    initiallization erro: file java/lang/Object.class not found in classpath
    I am usgin Oracle JDeveloper 10g 10.1.2 on a Mac OS X Tiger
    Could someone please help?
    thanks a bunch!!!

  • Class not Found when accessing Proxy class from backing bean in VC.

    Hi All,
    I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
    I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
    JDev : 1.1.1.4
    Thank you.
    Regards
    PP.

    Hello Arun,
    Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
    I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
    Thanks
    PP.

  • Class not found error while executing jar file

    I have written a java code in which i am connecting to database....when i run the class file using......java class_filename it works........
    but when i run the jar file using .......java -jar jar_name ...yi gives me the error as 'Class not found'......
    can anybody help me please......
    Thanks and Regards,
    Siddhesh

    that class is part of jar file.....in classpath i have included zip files for jdbc ...to get databse connection.....and the jar being executed ................still it gives the error ClassDefnotfound which i think is due to database connection problem.....the exception is raised while.....
    Class.ForName("Driver_name").newInstance();/ This driver is present in zip files that i have added in classpath....
    above statement doesn,t giv error while i execute the class file............but exception while executing jar file only..
    Thnaks and regards,
    siddhesh

  • Service Bus 12c Class not found 'oracle.tip.pc.services.functions.ExtFunc'

    Hi,
    Did anyone came across this issue with Class not being found for XSLT Function used in transformer on 12c OSB.
    I'm using oraext:sequence-next-val and have configured as below:
    namespace-uri:http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc
    namespace-prefix: oraext
    Not sure why at runtime I'm getting below error, as the same was working fine in 11g OSB Domain.
    XML-22045: (Error) Extension function error: Class not found 'oracle.tip.pc.services.functions.ExtFunc'

    Have you restarted servers after putting jar in $Domain_Home/lib directory? Also try after explicitly adding this jar in classpath by editing server startup script (startManagedWeblogic.cmd or .sh) or in domain env setting script (setDonainEnv.cmd or .sh) and restarting the servers.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi on Mar 21, 2011 1:10 PM

  • Not able to start the remote server - class not found exception

    All,
    I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
    Following is the error console:
    cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
    GetNames error: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at java.rmi.Naming.rebind(Naming.java:160)
    at MyServerImplementation.main(MyServerImplementation.java:21)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
    java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
    at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
    at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
    at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
    at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
    at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    ... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
    Following are my classes:
    MyRemoteInterface.java
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    public interface MyRemoteInterface extends Remote {
    public String[] getNames() throws RemoteException;
    public class MyServerImplementation extends UnicastRemoteObject implements
    MyRemoteInterface {
    public MyServerImplementation()throws RemoteException{
    super();
    public String[] getNames() throws RemoteException{
    return new String[]{"Name1","Name2","Name3","Name4"};
    public static void main(String args[]) {
    try {
    // Create an object of the HelloWorldServer class.
    MyRemoteInterface obj = new MyServerImplementation();
    // Bind this object instance to the name "HelloServer".
    Naming.rebind("rmi://localhost:1985/GetNames", obj);
    System.out.println("GetNames bound in registry");
    catch (Exception e) {
    System.out.println("GetNames error: " + e.getMessage());
    e.printStackTrace();
    public class MyRMIClient {
    *@param args*
    public static void main(String[] args) {
    try {
    MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
    System.out.println("Names are "+remObj.getNames());
    catch(Exception e) {
    System.out.println("Problem encountered accessing remote object "+e);
    }

    That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
    In this case it's the registry that can't find the stub class.
    The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
    The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry().

  • Class not found exception XMLGregorianCalendarImpl* in PI 7.0

    Hello Experts,
    I have written java Class where  used the following package and Class in PI 7.1and it is working fine
    import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
    //part of the Java Class code
    XMLGregorianCalendarImpl XMLGenTime = new XMLGregorianCalendarImpl(gentime);
    XMLGregorianCalendarImpl XMLExpTime = new XMLGregorianCalendarImpl(exptime);
    but when I am trying to use the same  Class XMLGregorianCalendarImpl in PI 7.0 I I am getting the runtime exception.
    <Trace level="1" type="T">Class not found:                                         
    com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImp           
    l</Trace>                                                                          
    if I write a seperate UDF for the below code and use the jar file jaxp-ri-1.4.1.jar in PI 7.0 ,
    long TicketTime=3600000;
              String LoginTicketRequest_xml=null;
                 Date GenTime = new Date();
              GregorianCalendar gentime = new GregorianCalendar();
              GregorianCalendar exptime = new GregorianCalendar();
              String UniqueId = new Long(GenTime.getTime() / 1000).toString();
              exptime.setTime(new Date(GenTime.getTime()+TicketTime));
              XMLGregorianCalendarImpl XMLGenTime = new XMLGregorianCalendarImpl(gentime);
              XMLGregorianCalendarImpl XMLExpTime = new XMLGregorianCalendarImpl(exptime);
    I am getting the following error
    /usr/sap/X7R/DVEBMGS41/j2ee/cluster/server0/./temp/classpath_resolver/Mapcedceb44283d11e0c032000018b99fca/source/com/sap/xi/tf/_MM_test_.java:81: cannot access javax.xml.datatype.XMLGregorianCalendar bad class file: /usr/sap/X7R/DVEBMGS41/j2ee/cluster/server0/./temp/classpath_resolver/Mapcedceb44283d11e0c032000018b99fca/classpath/IA_javax_2.jar(javax/xml/datatype/XMLGregorianCalendar.class) class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. XMLGregorianCalendarImpl XMLGenTime = new XMLGregorianCalendarImpl(gentime);
    Kindly help me to solve this problem.
    Thanks,
    Kubra

    I have found the solution.
    The problem is solved by adding jaxp_api_1.3 jar and jaxp-ri-1.4.1.jar.we have to have both these jar in PI 7.0 to use com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl package
    Thanks
    Kubra

  • Error in beanshell - class not found in namespace

    We use beanshell to evaluate business rule validations on our application. Below is the calling method...
    private Object callBeanShell(final Object parameters, final String expression)
    throws EvalError {
    if (LogConstants.FINE_ENABLED) {
    logger.log(Level.FINE, "Expression: " + expression);
    beanShell.set("params", parameters);
    Object result = null;
    try {
    result = beanShell.eval(expression);
    } catch (Throwable ex) {
    getErrorHandler().fatalError("Expression: " + expression, ex);
    if (LogConstants.INFO_ENABLED) {
    logger.log(Level.INFO, "Expression: " + expression);
    logger.log(Level.INFO, "Result : " + (result == null ? "null" : result.toString()));
    return result;
    This has been working fine on the application for years, but we've suddenly started getting a problem with evaluations which are called from a SessionBean (via some reflection).
    Every time we try and call a certain set of expressions they fail on a 'class xxx not found in namespace'. This happens both when the expression contains code like:
    com.chubb.euz.SomeClass sc = new com.chubb.euz.SomeClass(); etc...
    or
    import com.chubb.euz.SomeClass; SomeClass sc = new SomeClass(); etc...
    The strange thing is that when I remote debug it & look at the bsh Interpreter what I see is that it's NameSpace object has a table called ImportedClasses on it which before the eval() call contains just bsh.Interpreter and bsh.EvalError but after the eval() it then contains all of the classes I pull in as imports in the expression passed to it, yet it still manages to throw this damn 'class not found in namespace' error!
    It still works whenever else it's called in the app (and this is only happening in our DEV environment). All I can think of now is that it's possibly something to do with the Thread that the beanshell is running on at this time, but that's just a guess as I know bugger all about Threads... I only think this because I can get the thing to work by stopping the processor which was built to run Events (EJB) generated in the app; resetting the Event's Task (regular class) to run again; then restarting the processor (not an option if this goes into PROD with the release!!!)
    Unfortunately, re-factoring the validations we need to run at this point is not really an option, as this is all coming at the tail end of a new release & the amount of code changes & subsequent regression testing required would kill us.
    This is on weblogic 8.1 - with the beanshell jar just embedded in the main application ear (I ran it with bsh.20b4.jar instead of the 1.3 version we were using but that has no effect).
    Any ideas would be more than gratefully appreciated as this is doing my head in!!!

    Hi,
    Thanks for the reply.
    I am trying to reverse SAP tables. Initially the Reversal process stuck at Set MetaData step. I stopped the session and restarted it then Set MetaData completed successfully but Set FlexFields give the error.
    Any idea?
    Regards,
    Arsalan.

Maybe you are looking for

  • Insert asterisk(*) for amount field (Very Urgent)

    Hi all, I want to insert asterisk() for amount field REGUD-SWNET(15C) in SAP script. ie suppose amount is 1000.00 rest of the length should be filled by asterisk() infrount of amount. ie ********1000.00 it has display like this. Your help ll be rewar

  • Selection-screen functionality

    Hi, I have 2 questions regarding selection-screens: 1. I have 2 select-options like this in my selection-screen: Matnr:  s_matnr Vendor: s_lifnr How can I make a check that if Matnr is filled then Vendor has to be filled as well and vice versa ? 2. I

  • Planned and actual consumption for each confirmation

    Dear All, There is a production order. it has two operations. i have made three confirmations of each operation for that order. now i want to see the planned and actual consumption for each confirmation. how is it possible. However i know that on ord

  • Where are pre-orders in ios6 in case I want to cancel?

    Can find a pre-order book in iBooks Purchases but can't cancel.  Can't even find a pre-ordered album, it is no longer located in Downloads.  Do not want a solution that needs a computer, as this feature existed in ios5.

  • Configure Cisco Works as a Syslog Server ???

    Hi Friends,                    Is it possible to configure syslog server in Cisco Works,if possible please share the steps need to be configutreed..