Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  mapmaker running trouble  (Read 3447 times)

0 Members and 0 Guests are viewing this topic.

Poidrac

« on: 27, February 2010, 19:16:44 »
I've been scratching my head on this one... I downloaded the new mapmaker, and unpacked... but...

When I run the start_editor.bat, I get the following, then the program ends before it even starts...

Quote
C:\Users\Poidrac\Downloads\DAIMON~1\DAIMON~1\editor>java.exe -jar DaimoninEditor.jar
'java.exe' is not recognized as an internal or external command,
operable program or batch file.

Can anyone tell me what's wrong? :question:
I have the current version of Java.  And I get the same error when using the collect_arches.bat.
[img:e618cc32ae]http://img384.imageshack.us/img384/9149/sbannercopy3kr.jpg[/img:e618cc32ae]

Nobbit

« Reply #1 on: 27, February 2010, 20:10:22 »
iirc u have to rename one file and delete another one? If u search the forums, u should be succesful.

https://www.daimonin.org/forums/maps/yeah-i'm-really-dumb-(question-p)/msg79232/#msg79232
was the first hit for
"DaimoninEditor.jar rename"
;)
« Last Edit: 27, February 2010, 20:12:05 by Nobbit »
nobbit
former collector of cursed rings
nowadays collector of cursed things

A dwarf, who fights with a sword does also like diluted beer (dwarvish saying)

Poidrac

« Reply #2 on: 27, February 2010, 20:36:00 »
sorry, Nobbit, but that didn't help at all...
Considering this a completely clean install *no previous versions* of the mapmaker, there isn't two .jar files.
[img:e618cc32ae]http://img384.imageshack.us/img384/9149/sbannercopy3kr.jpg[/img:e618cc32ae]

smacky

« Reply #3 on: 27, February 2010, 23:19:17 »
Yeah Nobbit's renaming js for internal updates of Gridarta, which currently isn't relevant to the B5 mapmaker anyway. So that won't help.

Looking at the error message it seems the problem is your java, bot the mapmaker at all. You don't seem to have Java installed, at least not properly.

It's Windows though so I can't help much, but try reinstalling it: www.java.com

Poidrac

« Reply #4 on: 28, February 2010, 00:44:46 »
okay, I've uninstalled and reinstalled Java twice now.  each time, I'm getting the same error.
on a quick off chance, I tried the direct click on the DaimoninEditor.jar file (I know you frown on that, Smacky :p, but it was just to test if the program worked... and it did.)  so, somewhere, the .bat isn't reading the Java right to run the .jar.
I think that's the case... but I'm not experienced in this sort of thing, so I can't tell for sure.

Question... Does the .bat file look along a specific file path for the java.exe file?  If it does, I think I know the problem and can sort it.
[img:e618cc32ae]http://img384.imageshack.us/img384/9149/sbannercopy3kr.jpg[/img:e618cc32ae]

smacky

« Reply #5 on: 28, February 2010, 13:57:15 »
Yeah that's probably it then. The start_editor.bat file is:
Code: [Select]
REM *** this should start the editor **
cd editor
copy DaimoninEditor.jar.tmp DaimoninEditor.jar
java.exe -jar DaimoninEditor.jar
cd ..

So I guess java is expected to be on a default path (and look, it does Nobbit's renaming automatically :)).

Nobbit

« Reply #6 on: 28, February 2010, 14:04:23 »
my renaming? so what is my name now? :P
nobbit
former collector of cursed rings
nowadays collector of cursed things

A dwarf, who fights with a sword does also like diluted beer (dwarvish saying)

Lippy

« Reply #7 on: 28, February 2010, 20:45:44 »
Looks like the version from http://www.java.com doesn't add the path for the java.exe. What you will need to do is add it manually.

The steps below is for a Windows 7 machine. It should also work for Windows Vista. If you are running Windows XP, it might be a little different, but since I haven't ran that for over 2 years, I can't remember off the top of my head the exact steps for that, so hopefully you are on the newer versions of Windows. :)

1. Click on the Start menu button. Right click Computer and go to Properties. This should bring up the System dialog.
2. Click on Advanced system settings. This should open another dialog called System Properties.
3. Click on the Advanced tab. Then click on the Environment Variables button.
4. Find where your Java is installed. The default would be in C:\Program Files\Java\jre6\bin. Note that in 64-bit versions of Windows, it will probably be within Program Files (x86) instead. If you see a bunch of executables in that directory including java.exe, then you are in the right location.
5. Now, you need to add the path to java.exe into your Path environment variable. I would recommend adding it to the user variables rather than the system variables so you won't risk screwing up your OS if you get it wrong. If the Path variable already exists there, edit it, otherwise add it. You will need to add a semicolon after the text that already exists, then add the path to java.exe. It has to point to the directory containing java.exe, not java.exe itself. So if you installed Java into the default location then it is likely to be C:\Program Files\Java\jre6\bin. You should still check to see where it is installed though to make sure that the path you type is correct.
6. Click on OK on the Environment Variables dialog to save it.
7. Now let's test to see if it works. Click on the Start menu again, go to Program Files -> Accessories -> Command Prompt. In there, type java -version. If all is working, it should tell you which version of Java you are running.
8. Run start_editor.bat and it should work fine.
Current Project: Dynamic Widget Client (M1)

Poidrac

« Reply #8 on: 01, March 2010, 00:02:08 »
Lippy!!!!!!! Thank you, thank you, thankyou!!!

that's was exactly what I needed :)  You didn't need to dumb down some of the jargon :P but I guess I'm not the only one that will have the problem sometime :)

I run Windows7, so I guess that OS is the problem since it doesn't add the command line to it's variables.  There is only one minor thing I had to do differenetly, and that was that the path to java had to be the first, before what was there.  But that might have been something I did wrong.

again, thanks.  Now, to get on with this :D

Thanks as well Smacky for attempting (considering your own admission that Windows isn't your specialty ;) )
As for you, Nobbit, your new name is Leroy Jenkins  :ugh:
« Last Edit: 01, March 2010, 00:05:37 by Poidrac »
[img:e618cc32ae]http://img384.imageshack.us/img384/9149/sbannercopy3kr.jpg[/img:e618cc32ae]

Nobbit

« Reply #9 on: 01, March 2010, 09:22:44 »
i decline that renaming :(
nobbit
former collector of cursed rings
nowadays collector of cursed things

A dwarf, who fights with a sword does also like diluted beer (dwarvish saying)

smacky

« Reply #10 on: 01, March 2010, 13:04:13 »
Good. Is there some way to rewrite the BAT file to autodetect and correct all this, or should we just include Lippy's walkthrough in the README_FIRST file?

Tags:
 

Related Topics

  Subject / Started by Replies Last post
17 Replies
3257 Views
Last post 22, April 2005, 11:56:41
by Cheristheus
3 Replies
1253 Views
Last post 18, June 2006, 13:37:58
by maxhobo
0 Replies
680 Views
Last post 11, June 2007, 08:48:36
by Jammie
10 Replies
4027 Views
Last post 28, February 2008, 15:20:37
by michtoen
17 Replies
3814 Views
Last post 24, April 2009, 17:38:04
by smacky