Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 11-25-2006, 10:26 PM   #1
In Runtime
 
RiverS's Avatar
 
Join Date: Feb 2006
Posts: 408
Send a message via MSN to RiverS
Default Help on Java

hey i have downloaded ProjectX_Source_0.9 which basicly lets put recorded Digital TV files into a DVD file and lets you edit it like for instance if the sound is out of sinc....but the twist is they only give you the Source inside the files there is a .BAT file in it that lets you run it but you have to direct it to Java so it can use it as a tool to run the program. here is the code of the file i have tryed and failed i was just wondering if anyone here could help me.

Quote:
@echo off

rem test if JAVA_HOME is already set in the system environment
if exist "%JAVA_HOME%\bin\javac.exe" goto JAVA_HOME_SET

rem IMPORTANT! Edit the next line and set JAVA_HOME according to your environment.
set JAVA_HOME=C:\Program Files\Java\jre1.5.0_09\bin\java.exe

rem test if JAVA_HOME is set correctly now
if exist "%JAVA_HOME%\bin\javac.exe" goto JAVA_HOME_SET

echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!
echo ! Error: JAVA_HOME not found !
echo ! Please correct the build.bat file and set the JAVA_HOME path variable. !
echo ! If not installed a Java SDK can be downloaded from http://java.sun.com !
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!
pause
goto END


:JAVA_HOME_SET

echo deleting old ProjectX.jar file
del ProjectX.jar

echo creating build subdirectory
mkdir build

echo compiling ProjectX with JAVA_HOME=%JAVA_HOME%
"%JAVA_HOME%\bin\javac.exe" -O -classpath lib\commons-net-1.3.0.jar -d build @sources.lst
if errorlevel 1 goto ERROR

echo copying resources
copy resources\*.* build
if errorlevel 1 goto ERROR

echo building ProjectX.jar file
"%JAVA_HOME%\bin\jar.exe" cfvm ProjectX.jar MANIFEST.MF -C build .
if errorlevel 1 goto ERROR
goto END

:ERROR
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo ! Some Errors occured, stopping build !
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
pause

:END
__________________

__________________
ORLY?
RiverS is offline   Reply With Quote
Old 11-28-2006, 12:47 AM   #2
Golden Master
 
borat_sagdiyev's Avatar
 
Join Date: Feb 2006
Posts: 8,986
Send a message via AIM to borat_sagdiyev Send a message via MSN to borat_sagdiyev
Default Re: Help on Java

here ya go bro

http://download.videohelp.com/downlo...X_090.4.00.zip
__________________
Core 2 Duo e4500 2.2ghz @ 2.8ghz
evga 650i ultra
2gb 400mhz ram OC'ed to 450
evga geforce 7600GT overclocked
borat_sagdiyev is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 07:20 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0