Cannot find java.lib.

I am unable to build an .exe for the c program in Visual C++ Builder in Visual Studio as the error says,
unable to find Java.lib file as follows
LINK : fatal error LNK1104: cannot open file "java.lib"
Error executing link.exe.
I searched for the java.lib file in the jdk1.3.1_02,but was unable to trace it.
Please post an answer asap.

Hi,
if you use JNI, java.lib has been changed to jvm.lib. It can be found in the lib directory of the JRE.
Ulrich

Similar Messages

  • CDR-17066 RON cannot find java EWT graphics classes

    Hello,
    I am evaluating Oracle SCM. Everything's going great, except I am unable to use the Version History or Version Events. When I try, I get an error:
    "CDR-17066: RON cannot find java EWT graphics classes"
    The action it recommends is to check the registry or environment variable JVM_CLASSPATH_RON, and make sure it points to the ewt jar.
    I found a jar called ewt3.jar in my oracle/jlib directory. There was no environmental variable called JVM_CLASSPATH_RON, so I created one and set it to that jar. But I'm still getting the same error.
    Any help would be appreciated. Thank you.

    Hi,
    this error message is rather strange: I checked in our knwoledge base, but you seem to be the first one having this issue!
    I had a look to my registry and indeed I couldn't find the variable JVM_CLASSPATH_RON.
    I suspect that this variable was superseded by another one (JVM_CLASSPATH_DEFAULT_THIN_JDBC ?).
    I checked for all variables including ewt and found the following:
    . FORMS90_CLASSPATH (<Home>\jlib\ewt3.jar)
    . FORMS90_BUILDER_CLASSPATH (<Home>\jlib\ewt3.jar)
    . JVM_CLASSPATH_DEFAULT_THIN_JDBC (<Home>\jlib\ewt4.jar)
    FORMS90_... variables are not used by the Version History and Version Event Viewers, but JVM_CLASSPATH_DEFAULT_THIN_JDBC is.
    I removed the entry <Home>\jlib\ewt4.jar from JVM_CLASSPATH_DEFAULT_THIN_JDBC, and then I could reproduce your issue.
    So could you check the content of this variable JVM_CLASSPATH_DEFAULT_THIN_JDBC?
    It's located in HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\HOMEx\REPADM61\DEFAULT_JVM_PARAMS_THIN_JDBC
    Could you also check that file <Home>\jlib\ewt4.jar does exist on your machine?
    Regards,
    Didier.

  • Compiling Invocation Programs ? Where to find javai.lib ??

    Hello,
    I'm having J2SE 1.4, VC++ 4.0. I'm trying to compile the invocation programs given in the Java Tutorial but I'm unable to compile since I've not found javai.lib in my J2SE folder. Can anyone help me on how to compile. Where to find javai.lib ??
    Thanks
    Wah Java!

    The javai.lib/dll have been replaced by jvm.lib/dll
    since Java2 SDK 1.2. The javai.lib is in the "lib"
    directory of your JDK installation. Note that the
    invocation API has also changed, and you will probably
    need to update the method calls. See the JNI spec at
    http://java.sun.com/j2se/1.4/docs/guide/jni/spec/jniTOC
    doc.html.As you've said, I compiled the program and linked with jvm.lib but VC++ said that jvm.lib is incorrect file (or you can say corrupt file). Can you please help me how to compile with JVM.lib
    Thanks in advance,
    Ashish Shukla
    Wah Java!

  • Cannot find java.exe when executing Sun Java Enterprise 8.1

    I downloaded and installed Sun Java Enterprise 8.1 (actually because I kept getting not enough space messages I downloaded it in 3 parts). When attempting to execute by clicking on the icon I keep getting a message saying "cannot find java.exe". I previously installed the java runtime successfully. Is anyone familiar with this and if so how do I get around it. I am running Win2k SP4 on a laptop. Thank you for any insight you can provide.

    Hi,
    I faced same problem. I had jdk 1.5.0_05 installed on C: drive directly. But When I check the log though the installation found the version it was assuming it to be at 'C:\Program Files\Java' so even after finding the installed JDK it was failing. When I copied the JDK at 'C:\Program Files\Java' and then uninstalled and reinstalled the Sun java studio 8 again, at this time it asked me about which JDK to use! Then there I could point to C:\jdk1.5.0_05. Then everything went through fine. I guess this is some problem in installation code. Try this out.

  • Cannot find java.lang.Object

    hi, all. i tried compiling my class using KToolbar but it cannot load some of my classes on the other package. so i tried compiling it using the command line. I am encountering a problem and the error message is that it cannot find the java.lang.Object. I already included tools. jar in my classpath but it didn't work. Do you know guys, what I am missing?
    Thanks,
    Pulat

    c:\j2mewtk\libs\midpapi.zip has to be in your classpath
    rob,

  • Cannot find java classes in PDK

    we cannot find the java.classes
    oracle.webdb.portlet.Portlet;
    oracle.webdb.portlet.PortletInfo;
    oracle.webdb.portlet.PortletUtils;
    we need them for developing portlets.
    Thomas
    null

    The definitive article: [Mastering the Java Classpath|http://www.kevinboone.com/classpath.html].
    ... and actually do the exercise therein.
    See you an hour or so if you're still stuck (which you won't be).
    Cheers. Keith.

  • Cannot find Java Component

    Hi all,
    I'm installing SolMan 7 and the installer asks for the Label: SAP:UT_SOLMAN40SR4:NW04SSR3
    I dowloaded the SAP Solution M. 7.0 SR4 Java Comp.  from:
    Installations and Upgrades" SAP Technology Components" SAP SOLUTION MANAGER" SAP SOLUTION MANAGER 7.0
    but it does not work, the label is wrong and I cannot find the correct label anywhere.
    Please help.
    Thanks.

    Hm... Interesting that you have to extract the rar files on windows when they are for linux...
    I had the same problem some time ago, didn´t know you were on Linux so it was just a quick guess
    You could also use "unrar e -ep ".  This would also extract the directories, too bad this is not a default option.
    Markus

  • Cannot find Java.dll / java2 runtime environment?

    Dear Friends,
    I am using jdk1.3 and j2sdkee.1.2.1.
    While I could successfully compile the java program . While running it give me RunTimeError as
    Registry Key 'Sofware\Javsoft\JavaRuntimeEnviroment\CurrentVersion' has 1.1 value , but needs 1.3 is required.
    Could not find java.dll.
    Could not find Java 2 Runtime Environment.
    Can any one put some light on these matters
    Thanks and Regards
    Abhilash
    My classpath settings are as follows:
    set java_home=C:\jdk13
    set TOMCAT_HOME=C:\tomcat~1
    set classpath=%classpath%;C:\ORAWIN95\BIN;c:\jdk13\bin;c:\jdk13\lib\jndi.jar;c:\jdk13\lib\tools.jar;c:\jdk13\lib\dt.jar;c:\tomcat321\lib\servlet.jar;c:\tomcat321\lib\ant.jar;c:\tomcat321\lib\jasper.jar;c:\tomcat321\lib\parser.jar;c:\tomcat321\lib\webserver.jar;c:\tomcat321\lib\jaxp.jar;c:\j2sdkee1.2.1\bin;c:\j2sdkee1.2.1\lib\j2ee.jar;c:\j2sdkee1.2.1\lib\jndi.jar;c:\j2sdkee1.2.1\lib\jhall.jar;c:\j2sdkee1.2.1\lib\ejb10deployment.jar;
    SET Path=c:\Oracle\Ora81\bin;"C:\PROGRAM FILES\ORACLE\JRE\1.1.7\BIN";C:\ORA\ORA81\BIN;"%PATH%";

    Hi,
    You'll need the runtime environment for JDK 1.3 installed.
    Check wether the folder "C:\Program Files\JavaSoft\JRE\1.3" exists. If it doesn't exist, go to
    http://java.sun.com/j2se/1.3/jre/download-windows.html
    Do download and install the jre.
    Hope this helps,
    Kurt.

  • Cannot find java card sdk 2.2.1 on oracle

    Hi,
    i have a java card support 2.2.1, but the problem is that I cannot find the sdk 2.2.1 on oracle release. It only provides download of 2.2.2 and 2.1.2(not linux). Does any one know why they don't provide sdk 2.2.1 and where to find it? thanks!
    best regards
    Edited by: 934624 on Jul 5, 2012 12:42 AM

    JCDK 2.2_01 for Windows: how to start java card development?

  • Cannot find nicanmsc.lib

    Hello folks,
    I hope I'm posting this in the correct forum.
    I'm developing a CAN (NICAN) program in C++ using MS Visual Studio 2008.  I have found the nican.h, but I haven't been able to find nicanmsc.lib.
    Any assistance is greatly appreciated.
    Thanks,
    Chris Hassan
    Solved!
    Go to Solution.

    Attached is a picture of the NI-CAN that has the nicanmsc.lib
    The NI-CAN is in:
    National Instruments Device Drivers Disk
    Then in the tree:
    Communication Buses and Protocols
    NI-CAN 2.7.5
    etc...
    I think you need to check this in order to get the nicanmsc.lib
    Maybe you also need to check
    the
    LabVIEW 2013 (32-bit) Support
    Examples
    Microsoft Visual C Support
    Examples
    Attachments:
    niLabViewInstallNI-CANEtc.jpg ‏214 KB

  • Registry key CurrentVersion incorrect and cannot find java.dll

    I have been reading the posts in this forum related to similar errors but not quite sure that they address this situation. Here is what I am seeing:
    I have j2sdk 1.4.2_05 on WindowsXP and the HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\CurrentVersion has the value 1.4.2_05. The j2sdk install copied the java.exe to C:\j2sdk1.4.2_05\bin, C:\j2sdk1.4.2_05\jre\bin and C:\Program Files\Java\j2re1.4.2_05\bin folders. It also copied the same file to the windows\system32 folder. So far so good.
    In my windows PATH env. variable, the windows\system32 path comes first . So when on the DOS prompt, I type "java -version" or even "C:\windows\system32\java -version", I get the following error :
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4.2_05', but '1.4' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    However, running
    C:\j2sdk1.4.2_05\bin\java -version OR
    C:\j2sdk1.4.2_05\jre\bin\java -version OR
    "C:\Program Files\Java\j2re1.4.2_05\bin\java" -version
    works and I get the version info for 1.4.2 j2sdk.
    Now I know that prefixing j2sdk bin path to the PATH variable, so that it comes before windows\system32 will set it right. But I think I should not have to do that , if the j2sdk installation has already copied the latest java.exe to the windows\system32 folder. If it was just an issue of java.exe in windows\system32 being in sync with the JRE current version in registry, I think even just "java -version" should have worked. Since that is not working, maybe there is something beyond that. At this time, I do not know what that could be.
    Any suggestions?

    The java.exe file in system32 that's being executed isn't version 1.4.2_05. Either you have multiple copies of java installed, or the install got screwed up.
    Check version and (maybe) just copy the correct file into system32?

  • Error running basic Welcome App - cannot find java.dll

    When running a basic welcome app, I get this error.
    RegistryKey 'Software\Javasoft\Java Runtime Environment\CurrentVersion' has version '1.7', but'1.6' is required.
    Error: could not find java.dll
    Error: could not find java SE Runtime Environment
    I had just changed my PATH variables so the javac could be found easily (it wasn't working before). After I changed the variables, I was able to get my app compiled, but when I went to run the java command, I get the above error. I have version 1.7.0 and my PATH variable has 1.7.0
    Need more info? I wasn't able to find any more specific info on the forum, or anywhere else.

    I had already uninstalled all previous versions and did a clean reinstall of 1.7 The only version I see in my Program Files folder is version 1.7. Is there another place it might be?

  • HT5559 cannot find Java SE 6 in System Preferences

    Hi All,
    I am using Mac OS X 10.7.5 , after install Java SE 6, I am having problem for Loading Safari 6.0.2 applications.
    "Browser missing plug-in".  Can't find Java Apps in System Preferences. JavaApplets seems having problem.
    Please Help.

    JavaApplets wrote:
    Hi All,
    I am using Mac OS X 10.7.5 , after install Java SE 6, I am having problem for Loading Safari 6.0.2 applications.
    Apple disabled use of Java SE 6 1.6.0_37 and below last week and has not yet announced plans to provide an update to Lion / Mountain Lion users.
    Your best bet would be to try Firefox using these instruction to enable the (un-safe) older plug-in if you must.

  • Mandrake 7.2 Cannot find java/lang/Thread (8.1.5)

    I have read all the old messages relating to this problem but I still cannot install 8.1.5
    I have also read some of the pages written by jmsalvo and fortwayne all to no avail...
    I downloaded glibc jre116v5 and jre117v3
    Created symbolic link as per instructions
    [ln -s /usr/jre116v5 /usr/local/jre]
    I have tried setting CLASSPATH=/usr/local/jre/lib/rt.jar
    and unsetting it..
    I have even downloaded the JDK 116v5 and tried that as well with a 'rt.jat' symbolic link to the classes.zip
    I have taken care to remove any other paths to exisiting java runtimes etc.. but still it wont play.. I am tering my hair out. I understand that versions 8.1.6 and 8.1.7 are less painful but my link is not fast enough to download them.
    I am also running runIns.sh as oppossed to runInstaller.. but I keep getting the same error messages. Does anyone out there have any iedas.. I would be most grateful for any help
    Thanks
    lawrence
    null

    I have managed to get it working.. it needed JRE118v3..
    thanks
    lawrence (minus a few hairs)

  • HT2476 cannot find java runtime and photoshop will not open

    running OSX Lion on iMac Photoshop will not open. It says I need to update Java Runtime, but I do not have any updates. It says I am not connected to the internet and I am obviously since I am here. Help!!!!

    arlene220 wrote:
    I downloaded and it opens, but everytime I quit photoshop I get a crash report! there is nothing different except that I upgraded to Lion. Can I uninstall and run Snow Leopard and if so....how do I do that?
    Also, I just downloaded an upgrade to Topaz and it says cannot install on this computer...it is my main plugin for PS
    If you have gone to the Topaz developer's site and see no update for Photoshop in Lion, then all you can really do is contact them to see if they ever intend to update it.  What verion of Photoshop are you using by the way?
    Otherwise
    http://gigaom.com/apple/how-to-downgrade-from-lion-to-snow-leopard/
    Good Luck
    Pete

Maybe you are looking for

  • Auto Po creation for Services from service PR

    Dear friends, I need to configure the same scenarion Auto PO for Service PR with item cat D and Account assignment K. I have done following settings. 1) Auto PO marked in Vendor master 2)SproMMExternal Services ManagementSource Determination and Defa

  • What does the new 5th gen iPod boxing look like?

    I want to go buy it, but I am not sure how I can tell between the old(pre-september 12) iPod "video" and the new one. Is the boxing different like the iPod nano? Thanks for looking

  • Can I view media files stored on an external hdd connected to a wifi router

    Hi there, been searching but most the discussions seem quite old. I have a wifi router with a usb port for connecting an external hdd to. My ps3 will see the hdd but can I also get my iPad/iPhone to view the media files store on the hdd. Are there ap

  • If I don't like the mobile app can I get a refund?

    Looking to try this but don't want to pay $5 for a cap app. I've seen mixed reviews. It works great on my laptop as the Adobe Cloud CC but I want to know about my Galaxy Note 3

  • Context menu for chart not accessible when VI is running

    Hi I've got several LabView programs, all showing a chart to display data received via RS232. In all my application i can change update mode, autoscale etc. by right click on the chart (context menu). In one of my app the context menu does not pop up