Jni findclass cannot find my own classes with jre1.4

I have a C++ program that uses CreateJavaVM() and FindClass() to access my own Java classes. Everything works as expected. Another C++ program uses
GetCreatedJavaVMs() (returns 1)
AttachCurrentThread()
FindClass()
to try to access other Java classes of my own. The GetCreatedJavaVMs() and AttachCurrentThread() seem to work fine but the FindClass() cannot find my own Java classes anymore.
Shouldn't the VM and associated JNIEnv from GetCreatedJavaVMs be the same as that created using CreateJavVM() and thus be able to find the same classes? By the way, this worked fine with jre1.2 but stopped working when trying to move to jre1.4. Any ideas would be appreciated.

hi...was wondering if you got that issue resolved.
was it actually because of the newer JRE version?
thanks.Considering that the post is about 2 years old, and that the person hasn't posted much since then here, I'd doubt he/she's going to respond to you. This isn't his/her email address, ya know.

Similar Messages

  • "Cannot find the main Class. Program will exit."

    Hi, I created a program, and I am trying to distribute it to other people in my office. I tried using both NetBeans 6.8/6.9 and eclipse. I exported to a single jar file. When I run this single .jar file, it runs perfectly. I sent it to one of my coworkers, and the message "Cannot find the main Class. Program will exit." popped up. I then had IT update his Java to 6.20 and it worked. The problem is that this program must be distributed to over 100 people, and I cannot have them each update their Java individually, nor will IT update everyone's on their own. They all have Java 4.XX I believe. Is there any way around this error that only happens on older versions of java? I have checked my manifest file and what not, as I said it runs on computers with Java 6.

    AndrewThompson64 wrote:
    Do you mean Java 1.4? It is best to be sure, so point some of the target machines at this page(1) to check.Yes, Sorry I meant 1.4.XX, I think they have 1.4.2_19.
    >
    >
    a) Ensure the code does not use functionality introduced in later versions, e.g. assertions, generics, for-each loops.. Using the [cross-compilation options of javac|http://java.sun.com/javase/6/docs/technotes/tools/windows/javac.html#crosscomp-options] will warn of those.
    b) Ensure the code does not use any classes, attributes or methods that were not available in the earlier version, then use the cross-compilation options of javac when compiling. Actually the second will alert of the first, so long as the -bootclasspath parameter is used with an appropriate rt.jar.I believe that everything is ok, unless some of the swing functions cannot be used in 1.4. Besides the swing functions (which I am not sure about) everything should be able to be used in 1.4
    Thank You

  • Newbie question: cannot find symbol symbol: class STRING

    I've just decided to teach myself some java, and on my first try something's going wrong and I don't know what it is.
    I'm currently doing this tutorial: http://java.sun.com/docs/books/tutorial/uiswing/learn/example1.html
    and everything is good until I try to compile it and I get this error in the cmd
    HelloWorldSwing.java:30: cannot find symbol
    cannot find symbol
    symbol: class STRING
    everything has been written verbatim from the tutorial, including "import javax.swing.*;"
    What's wrong with it and how do I fix it?

    Hi,
    I saw the coding that You had given a link in your post. Change the following
        public static void main(String[] args) {bye for now
    sat

  • Java Error : cannot find symbol , symbol : class (jdk 1.6.0)

    Dear All,
    Please help me.
    I am running javac from a .bat file and i set the classpath in the bat file as follows.
    echo on
    :start
    set classpath = "C:\Program Files\Java\jdk1.6.0\bin;"
    set classpath = "C:\Program Files\Java\jdk1.6.0\jre\..\lib\tools.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\jce.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.6.0\jre\classes;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\ldapsec.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\mysql-connector-java-5.0.0-beta-bin.jar;C:\Program Files\Java\jdk1.6.0\jre\lib\ext\sunjce_provider.jar; C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\ideset\system;C:\Program Files\Java\jdk1.6.0\studio\system;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\j2ee-1.3.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jaas-1.0.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\activation.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jms-1.0.2b.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\jta-spec1_0_1.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\autoload\mail.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\AbsoluteLayout.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\sql.jar;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\rowset.jar;C:\Program Files\Java\jdk1.6.0\studio\lib\ext\jdbc20x.zip;C:\Program Files\Java\jdk1.6.0\studio\modules\ext\servlet-2.3.jar;C:\Program Files\Java\jdk1.6.0\studio\beans\TimerBean.jar;c:\Program Files\Java\jdk1.6.0\ideset\tomcat401_base;C:\sms\com\;"
    cd C:\sms
    javac mainP.java
    pause
    i have few class files which are inherited to the main program using ' import com.Connection; '
    i am getting errors like
    mainP.java:482: cannot find symbol
    symbol : class Connection
    location: class mainP
    Connection connection = new Connection(ipAddress, port);
    I think it is because of some classpath error.
    please advice me.......
    Viju

    Actually, you have NO CLUE what he's trying to doActually he said what he is trying to do in his posting. It's no mystery. But that's all the information that's available. If you know something that isn't posted here why not say so?
    Your reply was a snide, rude, "You're stupid for doing it that way" answerMy reply was neither snide nor rude and implied none of what you impute to it. It was a proper and constructive suggestion. You are entitled to disagree with it, but that doesn't justify this immoderate outburst.
    Bottom line is, you chose to be nastyBottom line is you're just making this up. You are imputing motives to me without evidence. Don't do that.
    You are the type of person that makes searching forums and posting questions for assistance a near waste of time.I doubt that you'll find many regulars here that would agree with that assertion. When you have made over 16,000 posts here over ten years as I have, come back and we'll discuss it some more.
    Go back to grade school and ...I suggest you try it yourself. You're not adding anything except noise to the discussion. Try curbing your temper, and while you're at it have a good look at the Code of Conduct for these forums. You're verging on personal abuse here.
    And, additionally, I've used ANT in the past. Batch files are FAR AND AWAY easier to set up.In your opinion. I disagree entirely, and I have eleven years' experience with Java to back it up.
    As for CLASSPATH, I haven't done anything about setting it beyond installing the JDK since about 1999, and it has a dot in it as we speak.

  • I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I have purchased a ringtone in the iTunes Store for my iPad, and I cannot find the download together with my music. I have received the invoice but I have no product. I am working with iOS6, if that helps. Can anybody help me?

    I am confused. Do you mean you found the music, not the tones, or you can't find either?
    If the former, then this is normal. You can't redownload tones from the Cloud.

  • I am trying to buy Ai and my trial is up.  It is asking for a serial number and I cannot find an e-mail with the number.  What shall I do?

    I am trying to buy Ai.  My 30 day trial is up.  It is asking for a serial number and I cannot find an e-mail with the number.  What shall I do?

    Please refer below link :
    Creative Cloud pricing and membership plans | Adobe Creative Cloud

  • Could not find the main class (with every jar)

    This isn't a developer question. I get the error Could not find the main class with every jar I try to open (for example the jar downloaded from https://gjar.dev.java.net/ gives the same problems - and I don't think there is something wrong with that JAR). It isn't a problem with the jar or MANIFEST because the same jar works fine on my laptop. So there is something wrong with my JRE installation, but what?
    I tried to remove and reinstall the JRE 6 Update 18 but that didn't work. When I run the JAR with command line java -jar "file.jar" it works fine, but if I dubbelclick on it I get the error message (and it's irritating me).
    I'm a bit desperate so I hope that someone here can help me ;)
    Thanks in advanced

    hai T.B.M ... Sorry to post here... I know that i posted my question in wrong thread..but i dont have another solution to contact with you.. I had seen your answers which are really excellent and helped to do my project..
    Now i am having very less time to complete my project and i am very new to JMF.. I am not getting output in JMF video capture ..please check the code and guide me where i gone wrong.......please pardon me once again to post here.. Heres my code
    import javax.media.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.media.protocol.*;
    import java.io.*;
    import javax.media.control.StreamWriterControl;
    public class webcam implements ActionListener,ControllerListener
    boolean eomReached = false;
    boolean realized = false;
    JFrame f;
    BorderLayout bd1;
    CaptureDeviceInfo device;
    MediaLocator m1;
    Player player;
    Component videoScreen;
    JButton b1,b2;
    Processor processor;
    DataSource ds=null;
    DataSink fileWriter=null;
    JLabel status=new JLabel("");
    public webcam()
    try
    JFrame f=new JFrame();
    JPanel p =new JPanel();
    JPanel p1=new JPanel();
    device=CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0");
    m1=device.getLocator();
    System.out.println("1");
    processor.configure();
    processor = Manager.createProcessor(m1);
    processor.setContentDescriptor(new
    FileTypeDescriptor(FileTypeDescriptor.MSVIDEO));
    ds=processor.getDataOutput();
    player.addControllerListener(this);
    MediaLocator dest = new MediaLocator("file://foo.avi");
    fileWriter = Manager.createDataSink(ds, dest);
    fileWriter.open();
    ds.connect();
    ds.start();
    player=Manager.createPlayer(m1);
    player.addControllerListener(this);
    blockingRealize();
    videoScreen=player.getVisualComponent();
    b1=new JButton("START");
    b2=new JButton("STOP");
    bd1=new BorderLayout();
    p.setLayout(bd1);
    p1.add(b1);
    p1.add(b2);
    p.add("South",p1);
    p.add("East",videoScreen);
    f.getContentPane().add(p);
    f.setVisible(true);
    f.setSize(500,500);
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    b1.addActionListener(this);
    b2.addActionListener(this);
    catch(Exception e){}
    public void actionPerformed(ActionEvent e)
    if(e.getSource()==b1)
    try{
    processor.start();
    player.start();
    fileWriter.start();
    catch(Exception e1){}
    if(e.getSource()==b2)
    try{
    player.stop();
    processor.stop();
    processor.close();
    fileWriter.close();
    catch(Exception e2){}
    public static void main(String args[])
    webcam obj=new webcam();
    public synchronized void blockingRealize() {
    player.realize();
    while (!realized) {
    try {
    wait();
    } catch (java.lang.InterruptedException e) {
    status.setText("Interrupted while waiting on realize...exiting.");
    System.exit(1);
    public synchronized void controllerUpdate (ControllerEvent event) {
    System.out.println("myPlayer generated "+event.toString());
    if (event instanceof RealizeCompleteEvent) {
    realized = true;
    notify();
    } else if (event instanceof EndOfMediaEvent) {
    eomReached = true;
    }

  • HT2513 I have a message that I cannot eliminate. "The Anniversary calendar does not support events". I cannot find any event associated with the anniversary calendar. In fact I have deleted the anniversaries from my calendar. any ideas?y

    I have started to use ICal and yesterday started to receive a message "The Anniversary valendar does not support events". I have searched my calendar events and cannot find any event associated with the anniversary calendar. I have turned off the anniversary calendar and deleted fro my calendar and the message still occurs. The MacBook Pro that I sync does not have this message. Even when ICal is turned off the message still occurs. Any ideas?

    I have started to use ICal and yesterday started to receive a message "The Anniversary valendar does not support events". I have searched my calendar events and cannot find any event associated with the anniversary calendar. I have turned off the anniversary calendar and deleted fro my calendar and the message still occurs. The MacBook Pro that I sync does not have this message. Even when ICal is turned off the message still occurs. Any ideas?

  • Cannot find symbol symbol : class Item location: package platypos.services.

    Well, I am having a few problems getting this java file to compile.
    /home/brandon/Desktop/platypos/services/order/Seat.java
    package platypos.services.order;
    import platypos.services.order.Item;
    import java.util.Vector;
    public class Seat
        private int             _number;
        private Vector<Item>    _items  = new Vector<Item>();
        public static void main(String args[])
            System.out.println("Hello");
    }here is my terminal session:
    brandon@Aspire5100:~$ javac /home/brandon/Desktop/platypos/services/order/Seat.java
    /home/brandon/Desktop/platypos/services/order/Seat.java:17: cannot find symbol
    symbol  : class Item
    location: package platypos.services.order
    import platypos.services.order.Item;
                                  ^
    /home/brandon/Desktop/platypos/services/order/Seat.java:23: cannot find symbol
    symbol  : class Item
    location: class platypos.services.order.Seat
        private Vector<Item>    _items  = new Vector<Item>();
                       ^
    /home/brandon/Desktop/platypos/services/order/Seat.java:23: cannot find symbol
    symbol  : class Item
    location: class platypos.services.order.Seat
        private Vector<Item>    _items  = new Vector<Item>();
                                                     ^
    3 errors/home/brandon/Desktop/platypos/services/order/Item.java is packaged as follows
    package platypos.services.order;and has been successfully compiled to Item.class in the same directory.
    I am using the latest JDK on Ubuntu 8.04
    I am a bit more skilled in C++ and am trying to learn java, anyone got any clues as to what I am doing wrong?
    Thank you

    yep, here is an abridged version of the Item.java file. and it has been successfully compiled to Item.class
    package platypos.services.order;
    import java.util.Vector;
    class Item
         // Constructor     
         public Item(String name)
              SetName(name);     
        // Main Function
        public static void main(String args[])
    }Edited by: javaperson on Apr 30, 2008 11:01 PM

  • [SOLVED] LyX cannot find layout/document classes

    LyX refuses to produce any output for me because it cannot find article.layout, or any other common layout. This file is installed in /usr/share/lyx/layouts/article.layout.
    I have installed texlive-most and texlive-bin. I have installed dvips and the other programs necessary to render files.
    I have tried clearing my LyX config several times (rm -rf ~/.lyx) and it hasn't helped. I have removed and reinstalled texlive with various options, including -Rn and -Rc, multiple times. I have also manually removed leftover files from both LyX and texlive. I have told LyX to reconfigure itself several times.
    No output will be produced. I thought maybe this was caused by some stray old config file floating somewhere out there but heretofore have not been able to find it or remove it via -Rn. Someone told me that a fresh install of LyX works.
    Any help would be deeply appreciated.
    EDIT: I have also tried updating my PATH to include /opt/texlive/bin as suggested somewhere else on these boards and then running and reconfiguring LyX. It doesn't help.
    Last edited by cookiecaper (2010-08-17 17:49:20)

    Ugh, just solved it. Hopefully this helps someone. I hadn't removed ~/.texlive. Removing that and restarting LyX fixed it.

  • I was told by the Apple store to create multiple user ids to control the content on my iphone. I did that and now I cannot find my original library with all of my playlists

    I was told by the Apple store to create separate user ids on my windows computer to create a new library to control the content on my iphone. I held down shift and clicked i tunes and created the library. I was told you can switch back and forth. I cannot find the old library and all of my playlists. Apple really needs a better way for families to manage their libraries and devices. This is such a pain in the butt!

    No, as I stated in the post this is the first issue we've had with the phone. No, this was not a replacement phone, this is the same phone I bought from the apple store in December and had not been serviced by anyone, it did not have any issues until last week.

  • I downloaded a picture from Adobe and in doing so created a new library and now cannot find my original library with all my pictures

    I downloaded a picture to what I thought was my iphoto library but created a new library with the one picture and lost my original library and cannot find it. hepl please
    thanx
    g

    What version of iPhoto and system are you running? Where is your library normally located, in the Pictures folder or on an external HD?  How and where did you download the photo to? Describe in detail.
    Launch iPhoto with the Option key held down and see if more than one library is displayed in this window:
    If you see your origial library select it and open.
    If you don't download and use  Find Any File to search for "Library6.iPhoto".  That's a file that's unique to iPhoto libraries.  FAF can search areas that Spotlight can't like invisible folders.  If there's a second library on your HD FAF will find it.
    When you find it drag it into your Pictures folder.
    OT

  • Cannot find shared windows printer with NEW macbook running leopard HELP!

    I just bought a new Macbook this past week. Woo Hoo. I love everything about it with the exception of file sharing and printer sharing. I have a less than one year old pc running vista that is connected to a hp 1300 series all in one printer. I can not even find this printer anywhere on the mac. i have been able to connect to my pc server via the ip address and share files this way. I am at a loss and really have no knowledge of mac. it is really disheartening, as I had way less trouble setting up windows networks for my roommates in college.
    Also, as a side helper, how can I setup a shared folder that can be accessed from both the mac and the pc. I would like something that I can set on the desktop of both in order to share files better and more efficiently than connecting to a server everytime I want to do this. Please help, and explain as if I am as stupid as I appear.
    Thanks.

    Here are two articles that may help:
    Mac OS X- Cannot locate a shared Windows printer.
    Mac OS X 10.5- Compatibility with Windows-shared printers.

  • Cannot find .TIF file saved with Acrobat 9 Pro

    I have a Canon document scanner that I use with Acrobat 9 Pro on Windows 7. I can scan the document into Acrobat, and save it as a PDF just fine. However, if I try to save it as a .TIF or a .TIFF, it appears to save just fine, but I'm unable to locate it afterwards. Here's what I've done so far:
    - Checked to make sure hidden files are visible in Windows Explorer
    - Made sure the permissions for the folder allowed writing files (even saved the TIF files to the same folder as the PDF files)
    - Searched for the filename with Windows Search. It finds the file, but when I try to click on it to open the file, Windows says that the file cannot be found.
    We're needing this for importing documents into a LIMS program, and we can't get that working until this part gets resolved. Anything that you can think of to help would be great. Thank you!

    Solved: It appears to be a Microsoft Word issue as it doesn't occur with other apps. When using the built-in 'convert to PDF' tool within Word the file name length is respected. It's an older version of Word (Word 2002 SP3). I printed a file using the same name length with Wordperfect and it works fine.
    I know this isn't a Word help forum, but if anyone does have a solution to offer it would be appreciated :-)
    Russell

  • Help!! cannot find files outside class dir

    Directory Structure:
    App
    |-src
    |-classes
    | |-App
    | |-...Packages
    |-resource
    |- images
    I am having problems finding the files in the resource directory from the classes in the classes directory.
    Currently, I am trying:
    InputStream is = ClassLoader.getSystemResourceAsStream("app.properties");
    and running with: java -cp .;../resource App.MainClass
    whats wrong? and Is it different if I use a JAR file?

    I can only get it working if the "resource" directory is in amongst the packages
    App
    |- classes
    | |- App
    | �  |.. packages
    | �  |- resource
    |- src
    and use :
    InputStream is = ClassLoader.getSystemResourceAsStream("App/resource/app.properties");

Maybe you are looking for

  • Error for the first time

    My ipod has always work fine. Just some background: I am an apple user and my ipod is windows formatted because I sometimes use it for file transfer on various computer OS platforms. Now just for the first time every I inserted my ipod into my powerb

  • Mail integration doesn't work - users can't sign up

    I've followed the instructions for the mail and calendar integration from the /opt/SUNWam/samples/integration folder. When users sign themselves up however, they still don't get access to mai. From the Sun ONE Console, an admin can click the 'mail ac

  • Vibration alarm level as a function of RPM

    I am working on the vibration panel for a machine with variable speed. The vibration alarm levels should be a function of the operating speed. Data Member Configuration screen accepts only constant values in the Alarm Condition box, HiHi, Lo, LoLo. 

  • Script for QCCHECKLIST

    We are used QCCheckList.aip plugin for Adobe illustrator 10. This plugin is used for Unlock All object, Delete Unused Swatches, Delete Scanned image Layer, Check White Box Masking, Check True Type font. Change Leading Value, Check Text Size, Check Ru

  • SCD Type 2 Conversion

    Hello, I am converting to OWB. The existing ETL has some support for SCD Type 2. It does not support Triggering attributes, however if the ETL determines that the Business identifier no longer exists in the source table it will set a Status attribute