Thread: Making Your Compiler Work

Results 1 to 4 of 4
  1. #1 Making Your Compiler Work 
    Registered Member

    Join Date
    Apr 2007
    Age
    25
    Posts
    296
    Thanks given
    14
    Thanks received
    18
    Rep Power
    299
    Is your compiler not working? Try here for the answer!

    Well, I started this because up until about 3 days ago, the basic compile batch didn't work for me. So anyway, there are 4 ways to compile your private server, and I will include them all here.

    The Basic Compiler:

    Code:
    @echo off
    title <YourServer> Compiler
    echo <YourServer> is compiling...
    javac *.java
    pause
    The Simple Compiler: If the Basic Compiler doesn't work

    Code:
    @echo off
    title <YourServer> Compiler
    echo <YourServer> is compiling...
    "C:\Program Files\Java\jdk1.6.0_02\bin\javac.exe" -cp . *.java
    pause
    Edit what is in bold to your JDK Version.

    Compile And Run: Compiles your Server, then runs it

    Code:
    @echo off
    title <YourServer> Compiler
    echo <YourServer> is compiling...
    "C:\Program Files\Java\jdk1.6.0_02\bin\javac.exe" -cp . *.java
    echo Running <YourServer>...
    "C:\Program Files\Java\jre1.6.0_02\bin/java.exe" server
    pause
    Mod Taharok's Perfect Compiler 2.0 Mod Taharok's compiler, I don't like it

    Code:
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::							::
    ::	This Compiler is under no licenses and may	::
    ::	be distributed freely.				::
    ::							::
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    @echo off
    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
    Well, there you go.

    Credits:

    Mod Taharok, 20%, his compiler
    Sex Machine, 80%, compiling this compiler thread (lol) and having a brain.
     

  2. #2  
    Registered Member Dakota Lesmercy's Avatar
    Join Date
    Sep 2007
    Posts
    289
    Thanks given
    0
    Thanks received
    0
    Rep Power
    13
    hmmm.... Nice idea of having a thread that has a few compilers...
    [Only registered and activated users can see links. ][Only registered and activated users can see links. ]
     

  3. #3  
    Whitey
    Guest
    Rubbish. If You cant compile and need this tut to do it, Get a life.
     

  4. #4  
    Ferret
    Guest
    Ehhh, this tutorial isn't so great but it is still a tutorial.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

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