Help with Pakrat/Java

Discussion in 'Mapping Questions & Discussion' started by soylent robot, Nov 2, 2009.

  1. soylent robot

    soylent robot L7: Fancy Member

    Messages:
    499
    Positive Ratings:
    171
    Okay Im trying to get Pakrat to work on my new PC, but I'm having difficulties with Java, which is needed to make it run.

    I've installed both Pakrat & Java, but when I try to open Pakrat a black command line type box pops up, says something, and then closes itself before I can read it.
    I think something went wrong when WinRAR decided that .jar files were for WinRAR and not Java, and now I can't fix that, because when I try and pick the correct program for it to open with theres about a million different Java applications, all of which have the same effect (opens a black box for a millisecond).

    Does anyone know whats going wrong and how I could fix this, or if theres a Pakrat alternative that doesn't use bloody Java?
     
  2. MacNetron

    MacNetron L5: Dapper Member

    Messages:
    203
    Positive Ratings:
    47
    Don't yell at Java because another program might be b0rking your PC.
    Java is one of the best developing languages I've ever used.

    A jar-file is a Java ARchive (is a zip btw) so the fact that WinRAR assiociates with it is not that strange, although not really wanted. A jar contains the compiled classes.

    The error message is really needed to to give some usable advise on what is wrong with your setup. Try to change the properties to see if it is possible to show the window after running or run the program from command line.
    My wild guess atm would be that your JAVA_HOME is not set properly...
     
  3. UKCS-Alias

    aa UKCS-Alias Mann vs Machine... or... Mapper vs Meta?

    Messages:
    1,264
    Positive Ratings:
    748
    Does there also exist a .jar file that can be run? if not then thats the couse. the batch file wont find the jar and cant run it then.

    Its indeed not java itself, its a good dev language (not the best though - it does have some limitations) but for allmost any program it will work perfectly and on allmost any pc.
     
  4. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    To see the error message, go to run and type cmd to open a terminal window. Then you can drag the program icon onto the terminal and hit enter.
     
  5. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    What Pseudo said will work.

    Another way is to just right-click on pakrat.bat, edit it (like in notepad) and add a second line that says "pause".

    That makes it say "press any key to continue..." so you can read it at your leisure.

    P.S.: Shameless plug for my Pakrat-slaying replacement, PackBsp.
     
  6. MacNetron

    MacNetron L5: Dapper Member

    Messages:
    203
    Positive Ratings:
    47
    Nice to see PackBsp is written in... Java!
     
  7. Terr

    aa Terr Cranky Coder

    Messages:
    1,591
    Positive Ratings:
    405
    Well, in fairness it's also using JNI (specifically, the awesomeness of JNA) to access a third-party DLL... (I hear there's a linux port of said DLL, but I haven't tried it.)
     
    Last edited: Nov 2, 2009