Classes not found when compiling for jdk1.3.1_01 on red hat 7.2

I have just installed jdk1.3.1_01 (rpm) on linux red hat 7.2
I have written a small program to test, however, the compiler isn't able to locate the classes.
import javax.swing.*;
public class JTest {
public static void main( String args[] )
JOptionPane.showMessageDialog( null, "Hello", "Test Dialog",
JOptionPane.INFORMATION_MESSAGE );
System.exit( 0 );
When compiled it generates the error:
JTest.java:10: error:Variable "JOptionPane" is not defined in current context
I have the path and classpath set to what I think are the correct directory paths.
Any advice would be much appreciated!
Thanks..

Sorry, typo in the classpath... but now when I compile
I get error: "segmentation fault" then nothing else.
This also happens when I execute a precompiled app (eg
"java OldApp").This is to do with GLIBC-2.2, I believe. :/ (Pointed out by Niteen. :)
"ulimit -s 2048" should fix this. Adding this line to /etc/profile or your ~/.profile shall automatically run this command every log in.
Bhav

Similar Messages

  • Java.rmi.UnmarshalException: skeleton class not found but required for clie

    Hello everyone,
    I am new to RMI and getting a strange exception. I am using Java 1.5.0_07 both on client and server. They are running on the same machine, the rmi registry is started inside the server application.
    I am wondering why java complains about skeletons, I thought they are automatically created when using java 5.0?
    Please have a look at the stacktrace below.
    Thank you for your help.
    Best Regards
    Patric
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
         java.rmi.UnmarshalException: error unmarshalling call header; nested exception is:
         java.rmi.UnmarshalException: skeleton class not found but required for client version
         sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:325)
         sun.rmi.transport.Transport$1.run(Transport.java:153)
         java.security.AccessController.doPrivileged(Native Method)
         sun.rmi.transport.Transport.serviceCall(Transport.java:149)
         sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
         sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
         java.lang.Thread.run(Thread.java:595)
         sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
         sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
         sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
         sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         java.rmi.Naming.lookup(Naming.java:84)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:58)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    The full class path information that I can gather is as follows (some of the library path locations could be suspect...):
    Class path: /edge/node3/hotfix::/edge/node3/current/lib/JMdsApi.jar:/edge/node3/current/lib/MemoryProfilingAgent.jar:/edge/node3/current/lib/T2common-2.6.0-SNAPSHOT.3200.jar:/edge/node3/current/lib/T2scripting-jython.jar:/edge/node3/current/lib/activation.jar:/edge/node3/current/lib/alib.jar:/edge/node3/current/lib/alibom.jar:/edge/node3/current/lib/ant.jar:/edge/node3/current/lib/authapi.jar:/edge/node3/current/lib/bbdlapi.jar:/edge/node3/current/lib/bcpg-jdk15-136.jar:/edge/node3/current/lib/bcprov-jdk15-136.jar:/edge/node3/current/lib/c3p0-0.9.1.2.jar:/edge/node3/current/lib/castor-1.1-codegen-anttask.jar:/edge/node3/current/lib/castor-1.1-codegen.jar:/edge/node3/current/lib/castor-1.1-xml.jar:/edge/node3/current/lib/castor-1.1.jar:/edge/node3/current/lib/colt-1.2.0.jar:/edge/node3/current/lib/common-annotations.jar:/edge/node3/current/lib/commons-beanutils.jar:/edge/node3/current/lib/commons-codec-1.3.jar:/edge/node3/current/lib/commons-collections-3.2.1.jar:/edge/node3/current/lib/commons-jexl-1.1.jar:/edge/node3/current/lib/commons-lang-2.3.jar:/edge/node3/current/lib/commons-logging-1.1.1.jar:/edge/node3/current/lib/commons-net-1.4.1.jar:/edge/node3/current/lib/dsn.jar:/edge/node3/current/lib/eagleapi.jar:/edge/node3/current/lib/ezmorph-1.0.3.jar:/edge/node3/current/lib/f2-loader-1.8.jar:/edge/node3/current/lib/fasttrade-boviewer-1.0.1.jar:/edge/node3/current/lib/hsqldb.jar:/edge/node3/current/lib/icu4j-3.4.4.jar:/edge/node3/current/lib/ivy.jar:/edge/node3/current/lib/janino.jar:/edge/node3/current/lib/janus-sdk-1.7.0.0.jar:/edge/node3/current/lib/jasypt-1.4.1.jar:/edge/node3/current/lib/javolution.jar:/edge/node3/current/lib/jcalendar-1.3.2.jar:/edge/node3/current/lib/jcl-over-slf4j-1.5.6.jar:/edge/node3/current/lib/jcommon-1.0.9.jar:/edge/node3/current/lib/jconn2.jar:/edge/node3/current/lib/jconn3-6.05-b26214.jar:/edge/node3/current/lib/jdom.jar:/edge/node3/current/lib/jfreechart-1.0.5.jar:/edge/node3/current/lib/jgroups-all.jar:/edge/node3/current/lib/jline.jar:/edge/node3/current/lib/jmkv123p1.jar:/edge/node3/current/lib/jna.jar:/edge/node3/current/lib/joda-time-1.5.2.jar:/edge/node3/current/lib/jscience.jar:/edge/node3/current/lib/json-lib-2.2.1-jdk15.jar:/edge/node3/current/lib/jul-to-slf4j-1.5.6.jar:/edge/node3/current/lib/junit.jar:/edge/node3/current/lib/jython.jar:/edge/node3/current/lib/log4j-1.2.15.jar:/edge/node3/current/lib/log4j-over-slf4j-1.5.6.jar:/edge/node3/current/lib/loggablePreparedStatement-1.6.jar:/edge/node3/current/lib/looks-2.1.4.jar:/edge/node3/current/lib/mailapi.jar:/edge/node3/current/lib/model-12021.jar:/edge/node3/current/lib/mysql-connector-java-5.1.7-bin.jar:/edge/node3/current/lib/opencsv-1.8.jar:/edge/node3/current/lib/rfa.jar:/edge/node3/current/lib/rspcore.jar:/edge/node3/current/lib/slf4j-api-1.5.6.jar:/edge/node3/current/lib/slf4j-log4j12-1.5.6.jar:/edge/node3/current/lib/smtp.jar:/edge/node3/current/lib/smtphandler-0.6.jar:/edge/node3/current/lib/spring-2.5.2.jar:/edge/node3/current/lib/statsvn.jar:/edge/node3/current/lib/swingx-0.9.3.jar:/edge/node3/current/lib/t2-12021.jar:/edge/node3/current/lib/testng-5.9-jdk15.jar:/edge/node3/current/lib/tibmsg.jar:/edge/node3/current/lib/tibrvj.jar:/edge/node3/current/lib/trove.jar:/edge/node3/current/lib/velocity-tools.jar:/edge/node3/current/lib/velocity.jar:/edge/node3/current/lib/xalan.jar:/edge/node3/current/lib/xerces.jar:/edge/node3/current/lib/patng/activeio-core-3.0.0-incubator.jar:/edge/node3/current/lib/patng/activemq-core-4.1.1.jar:/edge/node3/current/lib/patng/avalon-framework-4.1.3.jar:/edge/node3/current/lib/patng/backport-util-concurrent-2.2.jar:/edge/node3/current/lib/patng/binding-1.4.0.jar:/edge/node3/current/lib/patng/cglib-nodep-2.1_3.jar:/edge/node3/current/lib/patng/common-1.30.jar:/edge/node3/current/lib/patng/commons-cli-1.0.jar:/edge/node3/current/lib/patng/commons-configuration-1.2.jar:/edge/node3/current/lib/patng/commons-discovery-0.2.jar:/edge/node3/current/lib/patng/commons-math-1.1.jar:/edge/node3/current/lib/patng/concurrent-1.3.4.jar:/edge/node3/current/lib/patng/geronimo-j2ee-management_1.0_spec-1.0.jar:/edge/node3/current/lib/patng/geronimo-jms_1.1_spec-1.0.jar:/edge/node3/current/lib/patng/logkit-1.0.1.jar:/edge/node3/current/lib/patng/mina-core-1.0.1.jar:/edge/node3/current/lib/patng/mina-filter-ssl-1.0.1.jar:/edge/node3/current/lib/patng/mina-java5-1.0.1.jar:/edge/node3/current/lib/patng/mx4j-remote-3.0.1.jar:/edge/node3/current/lib/patng/mx4j-tools-3.0.1.jar:/edge/node3/current/lib/patng/org.apache.felix.framework-1.0.0.jar:/edge/node3/current/lib/patng/org.osgi.core-1.0.0.jar:/edge/node3/current/lib/patng/pat-dt-common-1.18.jar:/edge/node3/current/lib/patng/pat-sdt-1.18.jar:/edge/node3/current/lib/patng/patNg-api-1.27.1.jar:/edge/node3/current/lib/patng/patNg-server-aoc-1.21.jar:/edge/node3/current/lib/patng/patNg-server-common-1.21.jar:/edge/node3/current/lib/patng/patNg-server-session-manager-1.21.jar:/edge/node3/current/lib/patng/patNg-utils-1.27.1.jar:/edge/node3/current/lib/patng/qpid-broker-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-client-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-common-2.2.2.0.jar:/edge/node3/current/lib/patng/qpid-mina-core-2.2.2.0.jar:/edge/node3/current/lib/patng/rsee-2.11.jar:/edge/node3/current/lib/patng/servlet-api-2.3.jar:/edge/node3/current/lib/patng/silk-1.3.jar:/edge/node3/current/lib/patng/slf4j-api-1.4.0.jar:/edge/node3/current/lib/patng/slf4j-log4j12-1.4.0.jar:/edge/node3/current/lib/patng/validation-1.2.0.jar
    Boot class path: /apps/jdk/1.6.0_13/linux/jre/lib/resources.jar:/apps/jdk/1.6.0_13/linux/jre/lib/rt.jar:/apps/jdk/1.6.0_13/linux/jre/lib/sunrsasign.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jsse.jar:/apps/jdk/1.6.0_13/linux/jre/lib/jce.jar:/apps/jdk/1.6.0_13/linux/jre/lib/charsets.jar:/apps/jdk/1.6.0_13/linux/jre/classes:/tmp/yjp200811122006.jar
    Library path: /apps/jdk/1.6.0_13/linux/jre/lib/i386/server:/apps/jdk/1.6.0_13/linux/jre/lib/i386:/apps/jdk/1.6.0_13/linux/jre/../lib/i386::/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/edge/node3/current/lib:/home/eqdev/eqedgeuat/yourkit_7_5_11/yjp-7.5.11/bin/linux-x86-32:/usr/java/packages/lib/i386:/lib:/usr/lib

  • 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

  • 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 when generating deployment xml in MW

    any ideas anyone?
    java.lang.RuntimeException: Class not found:
         at oracle.toplink.workbench.persistence.BldrProjectToRuntimeProjectConverter.convert(Unknown Source)
         at oracle.toplink.workbench.ui.BldrSession.generateDeploymentXML(Unknown Source)
         at oracle.toplink.workbench.ui.BldrMainView.generateDeploymentXMLForSelectedProjects(Unknown Source)
         at oracle.toplink.workbench.ui.BldrActionManager$61.actionPerformed(Unknown Source)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
         at java.awt.Component.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.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

    Hi,
    'Class not found' in the Mapping Workbench usually means that one of your classes was not included in the 'class path' panel. In the Mapping Workbench select the project -> Class Path -> Add Entry...
    For example, in my case I have Person.class, which is part of the package com.toplink.course. 'C:\dev\tl400\classes\com\toplink\course>Person.class'
    So in the Mapping Workbench -> Class Path I put 'C:\dev\tl400\classes'
    Raanan.

  • Class not found when I run JSPs

    I set up and can run JSPs in iPlanet 4.1 SP9 on NT. But if I use anything
    such as Date() I get a Server Error and a Class Not Found in the error log.
    Can someone tell me how to confire where the .class and .jar support files
    go, or where do I put them. In the JDK install directory or in the iPlanet
    install directory.
    Thanks, Gary

    Something to note, you must have superuser priveleges to run ibconf.
    Check out this document about installing a PCI-GPIB on a Solaris machine. There is a section in it on page 9 about configuring the software with ibconf.
    If you still have problems after reading through this repost.
    JenK

  • Python headers not found when compiling gimp2.7

    Hello. I am trying to compile gimp 2.7 and when I run configure I get an error "python headers not found". I've read that in arch you get the headers together with the rest of the package so there is no need for a -dev package. I have installed python several times with pacman, but the problem persists.

    Edit the PKGBUILD and insert this:
    PYTHON=python2 PYTHON_VERSION=2.7
    infront of the "./configure" part. So it looks like this:
    PYTHON=python2 PYTHON_VERSION=2.7 ./configure --prefix=/usr --- snip ---
    happy compiling

  • Library -lc: not found when compiling ncurses 5.7 in solaris 10

    Hi,
    I'm using Solaris 10 x86_64 and I am having problems compiling ncurses 5.7. This is the error message when I try to execute make:
    gcc ../objects/tic.o ../objects/dump_entry.o -I../progs -I../../progs -DHAVE_CONFIG_H -I../../progs/../include -I. -I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG -I/usr/local/include/ncurses -O2 --param max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses -dynamic   -o tic
    ld: fatal: library -lc: not found
    ld: fatal: File processing errors. No output written to tic
    collect2: ld returned 1 exit status
    make[1]: *** [tic] Error 1
    make[1]: Leaving directory `/Documents/ncurses-5.7/ncurses-5.7/objdir/progs'
    make: *** [all] Error 2
    I've read that this error happens because you cannot statically compile with the c library in Solaris and that this is not exactly an ncurses bug. I am quite new to Solaris and I do not understand this entirely? Can anyone help me fix this? And perhaps give some explanation as well?
    Your help would be much appreciated.

    I'm not familiar with all the variations here, but I suspect gcc may be erroring out saying that it doesn't have a static copy of libc, Correct, from the truss output:
    7060:     open("/opt/local/lib/libc.a", O_RDONLY)          Err#2 ENOENT
    7060:     open("/usr/sfw/lib/libc.a", O_RDONLY)          Err#2 ENOENT
    7060:     open("../lib/libc.a", O_RDONLY)               Err#2 ENOENT
    7060:     open("../lib/libc.a", O_RDONLY)               Err#2 ENOENT
    7060:     open("/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/libc.a", O_RDONLY) Err#2 ENOENT
    7060:     open("/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../../../i386-pc-solaris2.11/lib/libc.a", O_RDONLY) Err#2 ENOENT
    7060:     open("/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/../../../libc.a", O_RDONLY) Err#2 ENOENT
    7060:     open("/usr/ccs/lib/libc.a", O_RDONLY)          Err#2 ENOENT
    7060:     open("/lib/libc.a", O_RDONLY)               Err#2 ENOENT
    7060:     open("/usr/lib/libc.a", O_RDONLY)          Err#2 ENOENT
    7060:     open("/usr/sfw/lib/libc.a", O_RDONLY)          Err#2 ENOENT
    # find / -name libc.a
    There's also a possibility of problems with templates:
    7058:     access("/usr/ccs/bin/ld.rpo", R_OK)          Err#2 ENOENT
    7058:     access("P,/usr/ccs/lib:/lib:/usr/lib:/usr/sfw/lib.rpo", R_OK) Err#2 ENOENT
    7058:     access("/usr/ccs/lib:/lib:/usr/lib:/usr/sfw/lib.rpo", R_OK) Err#2 ENOENT
    7058:     access("tic.rpo", R_OK)                    Err#2 ENOENT
    7058:     access("/usr/lib/crt1.rpo", R_OK)          Err#2 ENOENT
    7058:     access("/usr/lib/crti.rpo", R_OK)          Err#2 ENOENT
    7058:     access("/usr/lib/values-Xa.rpo", R_OK)          Err#2 ENOENT
    7058:     access("/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtbegin.rpo", R_OK) Err#2 ENOENT
    7058:     access("../objects/tic.rpo", R_OK)          Err#2 ENOENT
    7058:     access("../objects/dump_entry.rpo", R_OK)     Err#2 ENOENT
    7058:     access("/usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/crtend.rpo", R_OK) Err#2 ENOENT
    7058:     access("/usr/lib/crtn.rpo", R_OK)          Err#2 ENOENT
    while Studio 12 may be falling back to dynamic linkages for libraries where it doesn't have a static copy.Studio 12
    truss -f -o /tmp/out gmake
    grep libc.a out
    all show ENOENT
    There shouldn't be a problem with having the application libraries static, but the OS libraries will not be.:-)
    alan

  • Java.lang symbols not found when compiling package classes

    I have a set of classes that I have wrapped up in a package. The package name and
    directory structure follow the standard required for each. These classes contain many
    java.lang.Math functions and java.lang.Double calls.
    Am I correct in that the java.lang functions will be imported automatically? When I
    compile a class that is in the package, it looks for the Math.pow (for example)
    function in the package instead of java.lang. I have tried putting the following include
    at the top:
    include java.lang.*;and I still get the "cannot resolve symbol" error. Only when I use
    include java.lang.Math;
    include java.lang.Double;does it compile properly. Is this indicative of a problem with my classpath? It is
    currently set to look in whatever the current directory is, the directory with src.jar,
    and my dev directory that contains the package I am working on.
    Please advise! Thanks in advance!
    Rodman

    Thanks for the quick reply! I looked in the package directory and found the Math.java and
    Double.java files. I'm not sure why they were there. Thanks again!

  • Class not found when using JvmModelInferrer

    I am trying to transform one of my language elements to a class using the ModelInferrer approach. This generated class should extend a class (AbstractMatcher) from an external project. The external project is added to the build path of the Xtext model project as an external class folder and to the run-time project in the same way. It should be noted that the external project is a plug-in built in Helios SR1. I am able to reference the AbstractMatcher class from the xtend source code (it is available for auto complete and imported correctly), but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError when trying to add a superType to the generated class. If I substitute the AbstractMatcher with a dummy like java.util.ArrayList everything works fine. I have tried to make a simple Java class inside the runtime Java project and reference the AbstractMatcher from it and this also works fine. Everything seems to be able to find the offending class except the ModelInferrer.
    import external.package.AbstractMatcher
    def dispatch void infer(Matcher matcher, IJvmDeclaredTypeAcceptor acceptor, boolean isPreIndexingPhase) {
    acceptor.accept(matcher.toClass("matchers." + matcher.name.toFirstUpper + "Matcher")) [
    superTypes += typeRef(AbstractMatcher) // <---exception here
    Stack trace:
    java.lang.NoClassDefFoundError: org/talend/designer/xmlmap/figures/treetools/zone/matchers/AbstractMatcher
    at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:78)
    at org.xtext.example.mydsl.jvmmodel.MyDslJvmModelInferrer$1.apply(MyDslJvmModelInferrer.java:1)
    at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator$1.run(JvmModelAssociator.java:397)
    at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.installDerivedState(JvmModelAssociator.java:407)
    at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwareResource.java:240)
    at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.java:148)
    at org.eclipse.xtext.xbase.typesystem.internal.LogicalContainerAwareBatchTypeResolver.getEntryPoints(LogicalContainerAwareBatchTypeResolver.java:44)
    at org.eclipse.xtext.xbase.typesystem.internal.DefaultBatchTypeResolver.getTypeResolver(DefaultBatchTypeResolver.java:63)
    at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:49)
    at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver$1.get(CachingBatchTypeResolver.java:1)
    at org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
    at org.eclipse.xtext.xbase.typesystem.internal.CachingBatchTypeResolver.doResolveTypes(CachingBatchTypeResolver.java:46)
    at org.eclipse.xtext.xbase.typesystem.internal.AbstractBatchTypeResolver.resolveTypes(AbstractBatchTypeResolver.java:69)
    at org.eclipse.xtext.xbase.resource.BatchLinkingService.resolveBatched(BatchLinkingService.java:71)
    at org.eclipse.xtext.xbase.resource.BatchLinkableResource.resolveLazyCrossReferences(BatchLinkableResource.java:165)
    at org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:528)
    at org.eclipse.xtext.builder.clustering.ClusteringBuilderState.doUpdate(ClusteringBuilderState.java:234)
    at org.eclipse.xtext.builder.builderState.AbstractBuilderState.update(AbstractBuilderState.java:115)
    at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:248)
    at org.eclipse.xtext.builder.impl.XtextBuilder.incrementalBuild(XtextBuilder.java:228)
    at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:123)
    at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
    at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
    at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
    at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
    at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    I sense that this is actually an OSGi problem, since I see this is how typeRef tries to find the reference, but I don't know how to get around it. I am not able to add the external plugin containing the AbstractMatcher class as a dependency and I'm not sure if it would be possible due to different Eclipse versions (Helios vs Luna).

    On 13.07.15 12:39, Zeljko Vukovic wrote:
    > but when I start runtime eclipse, I get a java.lang.NoClassDefFoundError
    > when trying to add a superType
    Does it work for you if you refer to the AbstractMatcher from Java-code
    that is in a project in the runtime instance?
    Best,
    Sebastian

  • Class not found when invoking sub web-service

    Hi all :)
    I build a simple BPEL process that invokes a web method. Since here, no problem. No the concerned web method is a web service client of another web service... and it throws me an exception so that the first web method does not find a class needed for the soap request to the second web service. BUT if I call directly this web method, there is no problem : it call the second web method and it works very well...
    It seems that the BPEL process make that the first web method loses his contexte or something like that :(
    Here is the error :
    Caused by: class: com.sun.td.vta.ws.client.reservation.Cancel could not be found
    at com.sun.xml.ws.modeler.RuntimeModeler.getClass(RuntimeModeler.java:271)
    at com.sun.xml.ws.modeler.RuntimeModeler.processDocWrappedMethod(RuntimeModeler.java:562)
    at com.sun.xml.ws.modeler.RuntimeModeler.processMethod(RuntimeModeler.java:509)
    at com.sun.xml.ws.modeler.RuntimeModeler.processClass(RuntimeModeler.java:355)
    at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:251)
    at com.sun.xml.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119)
    at com.sun.xml.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87)
    at com.sun.xml.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:133)
    at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:284)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:171)
    at com.sun.enterprise.webservice.spi.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:82)
    at javax.xml.ws.Service.getPort(Service.java:94)
    at com.sun.td.vta.ws.client.WebServiceClient.getReservationManager(WebServiceClient.java:76)
    at com.sun.td.vta.ws.RegisteredProviderManager.search(RegisteredProviderManager.java:127)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:147)
    at $Proxy87.search(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.sun.xml.ws.server.PeptTie._invoke(PeptTie.java:61)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.invokeEndpoint(SOAPMessageDispatcher.java:280)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:588)
    at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:147)
    at com.sun.xml.ws.server.Tie.handle(Tie.java:90)
    at com.sun.enterprise.jbi.serviceengine.bridge.JAXWSMessageProcessor.doWork(JAXWSMessageProcessor.java:69)
    Do you have any idea ?
    Best regards !
    @++

    I would imagine that require statement would be need to successfully interpret this PHP file since it refers the Model_DbTable_Users class on line 7:
    $tbl = new Model_DbTable_Users();
    -mayank
    Flash Builder Engineering

  • Classpath set BUT still javax.servlet package not found when compiling

    Hello,
    I'm trying to compile a servlet and use tomcat 5 to run it. After I set the classpath to include the servlet-api.jar file, the compiler still tells me it cannot find package. I'm not sure what else to do. Please Help.
    Thanks Smoker

    Then you haven't set the actual classpath that the compiler is using. Just because you say you have set the 'classpath' doesn't mean you've properly told the compiler that.
    Such as, what did you do, set the CLASSPATH environment variable? Don't do that - ever. If that's what you did, and you're using an IDE, the IDE project is ignoring that environment variable anyway. You have to configure the project appropriately (which for one thing sets up the 'classpath' it uses), which varies depending on the IDE. That's an IDE question though, not a Java one.

  • Class not Found when Run

    Hi..everybody!!
    I have successfully compiled the program and I am 100% sure that the class file is in the current directory. However, when I run the program, it prompts the following error:
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp
    Can anyone help me?? Thx!!

    Is your source file named HelloWorldApp.java (highly recommended)
    Is your class file named HelloWorldApp.class (required)
    Does your CLASSPATH env. var. include "." (current directory).

  • Error Class Not Found when Importing

    When trying to import the roles from SAP, the Tomcat server throws the following error:
    20-04-09 10:26:28:662 - [/SAP].[Faces Servlet] Thread [http-8080-Processor23];  Servlet.service() for servlet Faces Servlet threw exception
    java.lang.ClassNotFoundException: org.apache.jsp.jsp.auth.sapsec_005fimport_005frole_jsp
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    I have added the sapjco.jar to the classpath of tomcat server and restarted the service. But it seems to have no effect.
    Would you have any proposed solution?

    Hello Ingo.
    I install the new jco version 2.1.8 by replace the old version.
    - Replace sapjco.jar in /<BO DIR>/bobje/tomcat/shared/lib .
    - Replace librfccm.o and libsapjcorfc.so in /<BO DIR>//bobje/enterprise120/aix_rs6000 .
    then stop tomcat and redeploy the application using this script below.
    ./wdeploy.sh tomcat55 -DAPP=CmcApp -Das_admin_password=root1234 undeploy
    ./wdeploy.sh tomcat55 -DAPP=CmcApp -Das_admin_password=root1234 deploy
    ./wdeploy.sh tomcat55 -DAPP=InfoViewApp -Das_admin_password=root1234 undeploy
    ./wdeploy.sh tomcat55 -DAPP=InfoViewApp -Das_admin_password=root1234 deploy
    ./wdeploy.sh tomcat55 -DAPP=OpenDocument -Das_admin_password=root1234 undeploy
    ./wdeploy.sh tomcat55 -DAPP=OpenDocument -Das_admin_password=root1234 deploy
    ./wdeploy.sh tomcat55 -DAPP=dswsbobje -Das_admin_password=root1234 undeploy
    ./wdeploy.sh tomcat55 -DAPP=dswsbobje -Das_admin_password=root1234 deploy
    ./wdeploy.sh tomcat55 -DAPP=SAP -Das_admin_password=root1234 undeploy
    ./wdeploy.sh tomcat55 -DAPP=PartnerPlatformService -Das_admin_password=root1234 undeploy
    ./wdeploy.sh tomcat55 -DAPP=SAP -Das_admin_password=root1234 deploy
    ./wdeploy.sh tomcat55 -DAPP=PartnerPlatformService -Das_admin_password=root1234 deploy
    Then I have the new problem.
    After I start tomcat I logon CMC as administrator then click Authentication.
    I switch 'Entitlement tab' into 'import role' tab I got this error.
    Exception in JSP: /jsp/auth/sapsec_import_role.jsp:22 19: 20: <% 21: String
    context=secSAPR3ImportRoleBean.getContextPath(); 22: secSAPR3ImportRoleBean.init(request); 23:
    response.setHeader("Expires", "0"); 24: %> 25: Stacktrace:
    (This import role tab used to worked when I use jco 2.0.12)
    Did I miss something?
    Please give me some advise.
    Thank you.
    - Chai -

  • Java Class not found when starting applet with ip address

    Hi @all,
    we use Application Server 10gR2 with Java 1.6.0_20 and we start the applet with an JNLP File.
    When I use the url http://lhhap03/forms/java the applet starts as it should. But when I change the entry to http://192.168.17.208/forms/java i get the error:
    Exception in thread "thread applet-oracle.forms.engine.Main-1" java.lang.NoClassDefFoundError: org/apache/regexp/RE
    Now I´m a little bit confused why i can´t use the ip address instead of the dns name from the server?
    Which config I have to change that i can get the access to jar libraries with the Ip - Address
    Best regards
    thomas

    Problem Solved, I put many environment variables  in the .bash_profile file, the CLASS_PATH will overwrite the weblogic server's classpath during startup.
    Remove them and restart server solved my problem.

Maybe you are looking for

  • Creation of subtype for Infotype 1001

    Hi all My client wants two reporting realtionship ( like A002) to be done. So I tried through Matrix which i was unable to do so. I tried to solve this problem by copying the existing subtype A002 with time constraint 2 ( for IT1001). Everything is f

  • Implicit character or charactered structure -- to String  Conversion

    Hi everybody, that sounds trivial but i am struggeling.... which is the most elegant way to do a implicit "To-String" Conversion in ABAP Objects... I have e.g.     data lok_string type string.     lok_string = wa.     m_object->addline( lok_string ).

  • Want to display an interactive pdf form in the browser

    Hi all, I had created a value node and has also binded it to the 'dataSource' property of Interactive form UI Element & i had also binded the 'pdfSource' property to a value attribute of binary type. i had design the pdf form using the Adobe liveCycl

  • Trouble downloading updates to CS5

    I had to rebuild my Windows 7 64-bit Dell workstation and reinstall Adobe Master Collection CS5. Tried to install updates using Adobe Application Manager and updates are unable to install. Following error message appears: "There was an error download

  • App Store and I tunes saying its disabled

    App Store saying its disabled and so i can't update apps