Slashdot Mirror


Web-Based Java Compiler Service

TheSync writes "Ronald Tschalär has set up a Web-based Java compiler service. Just type in your source file names and the JDK you'd like to compiler them with (1.1.8,1.2.2,1.3.1 or 1.4.1), and hit "compile." This makes getting started with Java easier, since you don't have to get the whole JDK."

50 comments

  1. "...compiler them with" by Tim_F · · Score: 1, Offtopic

    Do you people not proofread the submissions around here? Such a glaring gramatical error should not have been allowed to slip through the cracks. If you're afraid of changing what people have written, just state in the submission area that submissions will be checked and changed to insure gramatical correctness.

    1. Re:"...compiler them with" by RzUpAnmsCwrds · · Score: 2, Funny

      "Do you people not proofread the submissions around here?"

      You must be new here.

    2. Re:"...compiler them with" by Anonymous Coward · · Score: 0

      Tim, just to let you know - I have decided you will be my new Slashdot troll target. From now I am going to troll you with offensive, meaningless, trolls every time you post.

      It's partly because of this stupid post you just made ("insure" - did you do that on purpose?) but also just because it had to be someone and you were at the top of my page of comments.

      I have bookmarked your user page and will be waiting for your new comments.

      I am looking forward to workig with you, enjoy!

      The Trollartist, BA (Oxford) Trolling, MA (Cambridge) Flaimbaiting, DPhil (Harvard) Offtopicing

    3. Re:"...compiler them with" by Tim_F · · Score: 1

      I salute your efforts, fine sir. And I know you will read this as you have bookmarked my user page. Please enjoy reading the contents of it, as there have been some particularly good trolls there. And yes, I misspelt ensure on purpose.

      Please enjoy your day.

    4. Re:"...compiler them with" by Anonymous Coward · · Score: 0

      FUCK YOU! Fuck you! You fucking wanker! Burn in fucking hell! I fucked your mother! I slit her cunt open and drank her blood, and then I fucked her bloody crack.

  2. Huh?? by Visigothe · · Score: 2, Insightful

    Ok, perhaps I am missing the point, but what is easier, downloading a single file, or uploading all your source to a remote server, hitting the "go" button, then downloading the binary?

    It seems to me that DLing the JDK would be much simpler

    1. Re:Huh?? by devphil · · Score: 1


      I agree, this wouldn't be easier if the user was working with a single version. But it might be easier than downloading all of those versions of the JDK, if the user wants to try each one.

      Offering compilation over the web has been around for a while. I don't know why this is news.

      --
      You cannot apply a technological solution to a sociological problem. (Edwards' Law)
    2. Re:Huh?? by jo42 · · Score: 1

      The point is they could possibly pinch yer source code! Or anyone sniffing the traffic could pinch yer code as well...

  3. T-minus 10ns to Slashdotting... by themo0c0w · · Score: 4, Funny


    Ok, this guy is offering *compilation* services over the web.

    He just got linked from /.

    Wanna guess how long before his servers go up in smoke from the slashdot-effect?

    --
    ph34r teh p0w3r 0f th3 c0w
  4. Still up by epsalon · · Score: 1

    It's posted in the developers section, and most ppl just click on the link without USING the service...

    1. Re:Still up by Anonymous Coward · · Score: 0

      Offtopic but related to your Sig:

      Shortest way to crash IE with HTML I know:
      <html>
      <form>
      <input type>
      </form>
      </html>

      This will crash IE (atleast 6.x) everytime.

  5. good thing this isn't required with comments ... by Anonymous Coward · · Score: 0

    "If you're afraid of changing what people have written, just state in the submission area that submissions will be checked and changed to insure gramatical correctness." -- said the poster.

    "Insure" there would be have to be "ensure" before this comment was allowed on the system. Such a glaring error should not have been allowed to slip through the cracks.

  6. Re:good thing this isn't required with comments .. by Anonymous Coward · · Score: 0

    "here would be have to be "ensure" before this comment was allowed on the system." -- HA! Likewise, Pot/Kettle/Black and all that.

  7. So much simpler! by OppressiveGiant · · Score: 0, Redundant

    When I had to do it myself the steps were:

    1. javac *.java

    Now if I use the website:

    1. go to website
    2. do a bunch of clicking to upload the files
    3. save the files

    Wow! That's so much easier!

    --
    i could not think of anything clever.
  8. Compiler? I hardly even know her! by Anonymous Coward · · Score: 0
  9. Be careful! by clambake · · Score: 5, Interesting

    foreach $file (@uploadedfiles) {

    insertRootExploit($file);

    }

  10. Strikes me by Timesprout · · Score: 3, Insightful

    as a ridiculous exercise. Installing the JDK is not a hassle. If it is then you really dont want to be coding in Java. Neither do you really want to be compiling against anything less than 1.4.0. If for some reason you do the older JDK's are available from the Javasoft site along with the latest JDK's. The JDK also provides the source files which are an invaluable learning aid for Java.

    Compiling 5 files will only get you the most trivial of examples in any case.

    If you are only starting out there are many books available which come with a copy of a JDK, as do many IDE's such as IDEA and JBuilder. This would be better place to start. Trying to learn by remote compiling sound like a very painful experience to me.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
    1. Re:Strikes me by Anonymous Coward · · Score: 1, Insightful

      Not all java newbies have broadband you instensitive clod. Did you check the latest JDKs? 1.3.1 wincows executable is around 40MB, 1.4.1 windows executable is around 37MB, RPM is 40MB again. Which one is easier? Downloading one of these with a modem for hours or just uploading a helloworld.java? Not all people compile thousands of java classes (I do).

    2. Re:Strikes me by E1v!$ · · Score: 1

      Back when I had dial up, I said "gimme" 1.whatever it was back then and then went to sleep.

      The next morning I woke up and installed it. Total PERSONAL time? 10 minutes max.

      You really don't have to watch the progress bar when the file's coming in. I suggest doing something more constructive like, spending time with a girl! (or guy if that's your preference)

    3. Re:Strikes me by E1v!$ · · Score: 1

      "Installing the JDK is not a hassle. If it is then you really dont want to be coding in Java"

      Or anything else for that matter...

  11. Re:Yeah by Anonymous Coward · · Score: 0

    ...interpreted...

    to run a java APPLET, you need all this stuff, to run a java PROGRAM, you need the jre

    study a subject a little bit more before talking about it..

  12. Are people that lazy? by f00zbll · · Score: 2, Informative
    Ronald is the author of one of the most useful java libs HTTPClient. I've used it and the quality of the code is good. I can see situations where a person doesn't want to d/l the entire jdk because they're on dial-up. JDK1.4.1 is 36megs. On a dial-up that is really painfully slow.

    the older jdk's are smaller, but it's still 8-10 megs for jdk1.1.8. Plus it's hard to find the link on Sun's jdk archive site. the page is useful, but you'd be better of d/l the jdk or buying a java book that comes with the jdk.

  13. 56K by yerricde · · Score: 1

    1. javac *.java

    Bad command or file name

    Not everybody has the patience to download 30 MB of JDK software over a 56K connection.

    --
    Will I retire or break 10K?
    1. Re:56K by coolmacdude · · Score: 1

      Hmm, I wouldn't think many people developing Java apps would still be on dialup.

      --

      -You may license this sig for only $6.99.
    2. Re:56K by yerricde · · Score: 1

      In many areas, high-speed Internet access comes with a $200,000 setup fee.

      --
      Will I retire or break 10K?
  14. That's the theory by fm6 · · Score: 3, Informative
    In theory you're right. But that single file is huge. When I worked for JavaSoft, there was a lot of negative feedback from people who had slow and/or unreliable internet connections, and couldn't keep an ftp or http connection open long enough.

    The obvious solution is to provide some kind of download manager (as Netscape and Real now do). Or organize the Java SDK into smaller independent packages. Or allow outsiders to start up mirror sites overseas. Or... But life at Sun is full of politics and bureaucracy (which is why I no longer work there), and getting even the simplest solution in place is like pulling teeth.

    1. Re:That's the theory by Fished · · Score: 1

      Can you say "bit torrent"?

      --
      "He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
    2. Re:That's the theory by fm6 · · Score: 1

      Gawd, I can just imagine trying to convince the Sun bureaucracy to deploy something like Bit Torrent. Can you say, "snowflake in hell"?

    3. Re:That's the theory by Fished · · Score: 1

      It ought to be simple: "I can save you a boatload of money on bandwidth to give away the software you can't sell." (No wonder Sun's going down the Toilet.)

      --
      "He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
    4. Re:That's the theory by fm6 · · Score: 1

      Well, Sun's worse than most. But I've never worked for any large organization that didn't have this kind of problem. Getting a lot of people to work together without screwing each other up is not easy. Especially when a lot of them have big egos.

  15. jikes by sa3 · · Score: 3, Informative

    What's wrong with using jikes to compile your programs? It's not even 1 mb, it just needs rt.jar from the JRE.

    jikes website

    The JRE includes the same huge libraries that the JDK has, so there isn't much point in downloading the JRE on its own anyway

  16. news? by brondsem · · Score: 1

    This is far from newsworthy... besides the fact that very few people need to use this. I used this in 2001, and according to archive.org, it was up in 1998. Not quite breaking news.

    BTW, I used it because at high school I didn't have access to install a java compiler.

    --
    "a quote" -me
  17. Interesting... by Sunlighter · · Score: 2, Informative

    Just some random thoughts.

    DJ Delorie has had a public access compiler up for years. It's based on DJGPP. You could type in a little snippet of source code and get a DOS-extended executable. But you couldn't use C++ and you couldn't set the compiler flags. Probably just as well.

    This kind of service is primarily useful for very small programs. If your Java program is ten lines long, and you have the JRE, this kind of web service is much better than downloading a 40 megabyte compiler. However, I would prefer to download the source for the service and have it on an internal (or secure) webserver that I can control. Java's libraries are large enough that maybe some pretty short programs can do useful things. On the other hand, you usually have to call dozens of functions for even simple stuff.

    This is also made possible by the fact that the compiler is not Turing-complete or anything. Languages like Forth and Common Lisp can be compiled to produce executables, but they make the runtime available at compile time, so you could theoretically write code to open up /etc/passwd and e-mail you a copy during the compile. Even simpler, you could just allocate huge gobs of memory at compile time and try to bring the server down. Here, Java's lack of macros and #include, which to me is usually a disadvantage, can turn into an advantage.

    --
    Sunlit World Scheme. Weird and different.
  18. Do not try them all! by fm6 · · Score: 3, Informative
    I agree, this wouldn't be easier if the user was working with a single version. But it might be easier than downloading all of those versions of the JDK, if the user wants to try each one.
    Strictly speaking, there is only one version. Or if you want to get really picky, there's four versions, three of which are unsupported. There are an ungodly number of releases, which contain things like bug fixes and minor new features. But these are supposed to be backward compatible with the old versions. Anything that's not is a bug.

    Of course, in the real world, bugs happen, and people need to use old versions of the JDK to work around them. But anybody who's working at that level is a sophisticated Java programmer, not a newbie. Such a person does need the whole JDK!

  19. Compile java over the web? by Anonymous Coward · · Score: 0

    Wanna increase the compile time to match the run time?

  20. makefile? by SHEENmaster · · Score: 1
    command: foo
    • echo after sending all of your private source code through an insecure socket, you actually got a binary back
    foo:
    • echo "POST http://foo/bar/wasdfawasdfadf...
    --
    You can't judge a book by the way it wears its hair.
  21. Web Services and Licensing by L3WKW4RM · · Score: 1

    It seems all the comments here are of the "too lazy to download the JDK" variety, so I'm giving up moderation to chime in...

    I think this raises many issues surrounding the web service model. Sure this particular instance is just an HTML upload form, but suppose he'd wrapped this service up and exposed it via SOAP...it's now possible to programatically use this licensed application remotely while it's only "installed on a single machine", etc.

    Have any licenses touched on the idea of web services? Can I interact with a GPL'ed web service through my non-GPL client code?

    Can you trust a web service like this? A previous post mentioned inserting a root exploit into the compiled class...imagine what you could do if you're serving up stock quotes...

  22. Why not Run the compler as an applet on the user's by chrestomanci · · Score: 1
    Please excuse me if I have missed some obvous point, but why not put up on your 'compiler website' an applet that does the complition on the user's computer, in order to avoid using up cycles on the server? It should be relatively simple to put together such an applet, with two text boxes, one to paste the source into, and one for compler messages. When compilation is complete, The user clicks a button to copy the compled class onto the system clipboard from where it can be saved.

    In order to work the applet would call the classes in com.sun.tools.javac.* to do the compilation, and have access to all the other classes in the java class libaries so that everything could be validated for the correct method prototypes etc.

    So that a low bandwith user only downloads the classes that they need, and that their program refers to, the classes would need to be served individualy, rather than residing in a huge jar file.

    Anything wrong with this plan? (appart from a redistibution clause in SUN's EULA?)

  23. Yoou hyypiocit by Anonymous Coward · · Score: 0

    "insure"??

    Try spooling chucking you're oun pust befoure biatchinng abut sommeonue elssses.

  24. Oh, the irony! by Anonymous Coward · · Score: 0

    You spelled 'grammatical' wrong TWICE in your post about grammar. Additionally, you've used the word 'insure', while passable, when the preferred word to use in that situation is 'ensure'. 'Insure' is generally used when writing about guaranteeing people or property against risk. 'Ensure' is the preferred word when you simply mean 'to make secure or certain'.

  25. Don't need no stinkin' memo! by fm6 · · Score: 2, Interesting
    You're right, nobody told me. So, just out of curiousity, I installed it. Just a few problems.
    • It only accesses the "Sun download center", not the JDK files on java.sun.com.
    • There's a JDK on the SDC. Not the latest beta, but newbies want a production release anyway. Except that I can't find a link to the Windows version. It's supposed to be there, but whatever I do I always end up with the Solaris/86 version!
    • There's a link to the SDC on java.sun.com, but it isn't very conspicious. Someone browsing java.sun.com could be excused for thinking that the SDC didn't include any Java software.
    • I couldn't get the stupid download manager to work, anyway.
    All this weirdness would seem to be the result of the long rivalry between two of Sun's operating companies, JavaSoft and SunSoft. Of course, they're called something else now (I can't be bothered to keep up), but the rivalry it the same as ever. Did I mention that there's a lot of politics and bureaucracy at Sun?
  26. Re:Why not Run the compler as an applet on the use by Anonymous Coward · · Score: 0

    Well, then the user would have to install the JRE, which is not small either, thus limiting the already tiny point of net access to javac.

    If you only have dial-up access these days *and* its unreliable, how do you expect to get any real programming tools, environments, libraries, resources, etc? I suppose you could pay through the nose for some sort of CD distribution... Or you could look into a real Internet service...

  27. RTFM yerslef by fm6 · · Score: 1
    jesus! RTFM! what exactly did you used to do at Sun when you worked there? stock the vending machines?
    RTF what M? All the docs say is, "run the installer". I run the installer, which is some weird homebrew thing. I end up with a .BAT file that runs a complicated java.exe command. This command fails because it can't find the entry point class. This may have something to do with the installer assuming that my system disk is C: when it's actually F:. Call me lazy, but I can't be bothered to debug this.

    I have to wonder why this program doesn't use a commercial installer (Sun has site licenses for InstallShield and ZeroG). And why the program isn't packaged as an executable JAR (rather than a library JAR), which would simplify the installation and avoid potential (or in this case, real) CLASSPATH issues. None of which makes me confident that the program is solid or properly supported.

    Anyway, even if there were no problems like this, making the installation so complicated makes the whole thing kind of pointless. The Netscape and Real download managers install themselves when you click on a "give me the product" link. If Sun isn't going to do this, they should just provide a link to a freeware download manager, one that's been around and known to be stable. Politics. Bureaucracy.

    1. Re:RTFM yerslef by fm6 · · Score: 1

      Bored now.