• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JVM could not be loaded on windows 7

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am facing one problem in my application as following:

Java classes from my application uses JRE6 files for execution so I have bundled JRE6 folder in my application. An exe from my application loads JVM using function: Loadlibrary(jvm.dll's path). This works fine on XP but on Windows 7 machine an error is being thrown - "Unable to load JVM error."
What could be the issue? any suggestion?

This error disappears on Windows 7 machine if I bundle the above exe(exe from my application) with JRE6 folder at the following path:
JRE6/bin/MyExe.
It seems that exe is able to find its JVM dependencies at the path - JRE6/bin/MyExe. But would it be JRE6 Copyright and Licensing violation if I bundle my exe with JRE6 and distribute it along with my application.

NOTE: Exe from my application only loads JVM and does not add/modify/delete any file from JRE6 folder.
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JVM needs more than just a few files and folders to run. It also requires several registry keys, and you're probably missing quite a few.
 
Rashmi Zaregaonkar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On win7 machine, copying exe from my application at the following path: "JRE6/bin/" resolves the issue.
Would it create any licensing related issues if I copy that exe at above mentioned path while distributing JRE6 folder along with my application?
 
Marshal
Posts: 79234
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

You will have to look through the licenses to see whether you are allowed to do that. I don't know. I do not, however, think you can get a JRE to work with simply the java.exe file. Most computers have a Java™ runtime already installed, so it might be unnecessary. Or it may be possible to bundle your ,jar together with an installer program which installs Java™. I don't know how to do that, I am afraid.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Reinstall the program that uses the jvm.dll file. If the jvm.dll DLL error occurs when you use a particular program, reinstalling the program should replace the file.
 
Campbell Ritchie
Marshal
Posts: 79234
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ranchodas chanchad, welcome to the Ranch
 
reply
    Bookmark Topic Watch Topic
  • New Topic