Announcement

Collapse
No announcement yet.

Executing a jar with javaw

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Executing a jar with javaw

    Hallo People. Im trying to start a jar file with javaw.exe
    I have a bat file that can execute it.

    I have some things to solve:
    find out where javaw is on diffrent systems. registry key? cant find it?
    When i use the code in the bat file it works. When i try to use it in file.run it doesnt!

    Note: I am a 100% sure i have escaped \ files like this \\

  • #2
    Originally posted by Jules Graus View Post
    Hallo People. Im trying to start a jar file with javaw.exe
    I have a bat file that can execute it.

    I have some things to solve:
    find out where javaw is on diffrent systems. registry key? cant find it?
    When i use the code in the bat file it works. When i try to use it in file.run it doesnt!

    Note: I am a 100% sure i have escaped \ files like this \\
    Could you post the bat file, also yes AMS will need \\ over \ and 90% of the time its installed on the sourcedrive so you could just program the _JAW = _SourceDrive..'\\PATHERE\\' and _JAW64 = _SourceDrive..'\\64PATHERE\\' and then do a simple if file does exist check.

    Shell is what I would use to run it if you also having a problem with run.
    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #3
      i attached a sample project that shows how to obtain Java path from registry
      and how to execute a jar file with javaw.exe

      sample project contains a sample jar file that obtained from here
      Attached Files
      amsplugins.com Is Closed.

      Facebook Page

      Comment


      • #4
        thanks grandmaster retest
        very helpful example

        my respect and my admire

        Comment

        Working...
        X