• 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

VM can't recognize classpath when used with -Xrun

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have following errors keep preventing the agent file from running.
The path is right and prog.dll is right under the specified path.
Why is VM not recognizing the path??

C:\>java -Xrunprog -classpath C:\prog\bin\windows
Error occurred during initialization of VM
Could not find -Xrun library: prog.dll
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Welcome to JavaRanch!

Don't know what "-Xrunprog" does; do you mean "-Xrunprof"?

But in any case, the -classpath never refers to DLL files; it can refer to jar files, or to directories. You need to have a closer look at whatever documentation you got this "-Xrunprog" from, and see if you've read it correctly.
 
Won Lee
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
isn't it that the classpath is only referring to the directory? I just want it go into the directory specified by the classpath and then VM finds out the prog.dll file which is in that dir.

If it is so, how do you think I can run prog.dll with -Xrunprog and absolute classpath?
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic