hi me and my cousin are working on a 2 world project and one is a mem world and one is a free world. but the problem is, is that i can compile my mem world with the compiler but when i try to compile the free world it will say it has an error and not compile it. please help!!!
here is the compiler that i am using
Code:
@echo off
title Compiler
if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
:compile
for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
if defined p (%p% -cp . *.java)
if defined p (goto end)
:error
echo You do not have Java installed. Please download it at the site that is about to load.
"%programfiles%\Internet Explorer\iexplore.exe" http://java.sun.com/javase/downloads/index.jsp
:end
echo Finished!
pause
exit
The error that it says after I'm finished compiling is:
Code:
javac: file not found: *.java
usage: javac <options> <source files>
use -help for a list of possible options.
Finished!
Press any key to continue...