Help with Pakrat/Java

soylent robot

L420: High Member
May 26, 2009
499
394
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?
 

MacNetron

L5: Dapper Member
Dec 12, 2007
203
47
[...] bloody Java?

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...
 

UKCS-Alias

Mann vs Machine... or... Mapper vs Meta?
aa
Sep 8, 2008
1,264
816
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.
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
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.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
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.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Nice to see PackBsp is written in... Java!
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: