Slashdot Mirror


Jazilla Milestone 1 Released

mcbridematt writes "Many of the long time Slashdot readers will remember the Jazilla project to rewrite the Mozilla browser in Java. It went into hibernation in 2000 and I took it over last August. I have completely rewrote the browser which now follows a more Mozilla-like architecture. The Result: Jazilla Milestone 1 has been released. Download it from here. No prizes for guessing that it's Alpha software." Read on below for a list of what Jazilla can do, so far.

"Significant (implemented) features include:

  • chrome:// support
  • JavaScript implemented for the GUI thanks to the Mozilla.org Rhino engine. HTML Scripting coming.
  • GUI in part, uses XUL and W3C DOM
  • Written in 100% Java
  • Open Source
  • Uses the NetBrowser renderer, which is actually based on Jazilla-classic work."

66 of 353 comments (clear)

  1. Running this puppy by mcgroarty · · Score: 5, Informative
    I'm sure a million people will want to see this, but not everybody knows how to start it.

    Once you expand and extract this puppy, just cd into the folder it made and, assuming Java is properly installed on your machine, you need only run:

    java org/jxul/xulrunner/Main

    Good luck, and enjoy! The browser's still lacking in many obvious areas, but it does work on a lot of sites. Too cool -- props for all the hard wo\ rk. :-)

    1. Re:Running this puppy by jeffg · · Score: 5, Informative

      You may need to specify a classpath manually using one of the following (again, both from the directory containing README, COPYING.TXT, etc.):

      java -cp . org/jxul/xulrunner/Main
      java -classpath . org/jxul/xulrunner/Main

      Windows users: The "jazilla.bat" file may or may not work for you. You may wish to edit this file to specify the classpath as above. You could also change your CLASSPATH environment variable, if you felt the need.

    2. Re:Running this puppy by MyHair · · Score: 2, Informative

      java -Ddebug=true -Dsun.java2d.noddraw=true -cp . org/jxul/xulrunner/Main

      For Windows users with ATI cards, add the -Dsun.java2d.noddraw=true option to the command. (Prevents system lockups due to some conflict between Java & DirectX and ATI.)

    3. Re:Running this puppy by axxackall · · Score: 3, Insightful
      assuming Java is properly installed on your machine, you need only run: java org/jxul/xulrunner/Main

      Assuming that mozilla is properly installed on your machine, you need only run: /usr/bin/mozilla

      And presuming I run anything only if sources are available, I don't want any Java VM on my machine.

      --

      Less is more !
    4. Re:Running this puppy by mcbridematt · · Score: 4, Informative

      I might as well add two other things I didn't put in my original submission:

      1) Look in org/netbeans/netbrowser/tags for any .java files not compiled. Compile them. The renderer uses Reflection to start up tags, so they don't get compiled at compile time. In the future, if Jazilla finds a compiler and tag which isn't compiled, it will compile that tag
      2) Did I mention that getting URL's is multithreaded? If you try and hack it abit, e.g use a JIT for Crimson, you might get a better result.

      Also, anyone wishing to make a product based on Jazilla, note that the jXUL part is unlicensed. I am yet to talk to Kevin T. Smith (co-founder of the jXUL project) about what license to put it under. The renderer is under the SPL. When that's done, expect anything under org.jxul to move to org.jazilla

    5. Re:Running this puppy by hatrisc · · Score: 5, Informative

      actually there's a script. jazilla.sh

      --
      I write code.
  2. Why? by SporkNet · · Score: 2, Interesting

    The question had to be asked

  3. IE, Mozilla, and Opera are all I need! by crashnbur · · Score: 2, Interesting
    And I still test in various other browsers and in various other operating systems. But, of course, if Jazilla ever gets good reviews, I'll try it.

    Other than being Java-based, what's the point of this web browser?

    1. Re:IE, Mozilla, and Opera are all I need! by watzinaneihm · · Score: 4, Interesting

      Some uses I can think of is embedding sub-parts of it in embedded environments.You also can modify it (Open-source) it for use in hundreds of ways to create useful apps.This most probably is not going to replace any browser on the average desktop, but can possibly be used as a web-test tool, automation framework etc.
      What about running a browser/modification on a Netware box (it supports java) and no cross compiler necessary.
      Also note that W3C demoes a browser on their website ( Amaya IIRC) written in Java.

      --
      .ACMD setaloiv siht gnidaeR
    2. Re:IE, Mozilla, and Opera are all I need! by evilviper · · Score: 4, Insightful
      Other than being Java-based, what's the point of this web browser?

      I could probably name 100+ embedded devices that support java. Having an Open Source java browser is a good thing.

      Besides that, I could also harp about the security of java.

      Hmm, it would be ironic if Jazilla had a problem running applets.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    3. Re:IE, Mozilla, and Opera are all I need! by Jon_E · · Score: 2, Interesting

      It has less to do with the browser and more to do with open standards imho. Far too often I'm seeing more and more websites that are tailoring their Web experience to specific browsers like IE, Mozilla/Netscape, and Opera. The side effect is hearing *far too many people* say "IE works the best" or Opera is the greatest thing since sliced bread (thanks to the "free porn" industry). It's also a wonderful tool to see what barfs on popular websites and see the many unnecessary and cruddy obfuscations they've had to do with things like getBrowserType() and a myriad of javascript crap.

      The main limitation to the web now is the protocols we're using to define it. There's so much more available in "well-written" Java, but I don't expect the majority of platform bigots to get that quite yet.

    4. Re:IE, Mozilla, and Opera are all I need! by Fembot · · Score: 5, Funny

      Why do I have a strange urge to try and embed it in an applet?

  4. So, using Javascript and Java... by TWX · · Score: 3, Interesting

    Does the browser call a new java runtime layer, so it's a java layer running a web browser running a java layer, or does the original java layer detect the attempt to run Java and intercept to run it itself?

    What happens if I run the java web browser in a web browser?

    --
    Do not look into laser with remaining eye.
    1. Re:So, using Javascript and Java... by Exiler · · Score: 3, Informative

      Java programs != Applets, I think you're getting the two mixed up.

      --
      Banaaaana!
    2. Re:So, using Javascript and Java... by Asprin · · Score: 2, Funny



      Yeah, really! I mean they don't even have it as an Active-X plugin - how lame is that?!

      --
      "Lawyers are for sucks."
      - Doug McKenzie
    3. Re:So, using Javascript and Java... by jeffsix · · Score: 2, Informative

      Actually Java applets are programs - they are just programs that run inside of a web browser as opposed to on their own.

      Java applications != Java applets
      Java applications = Java applets + Java applications

      I think you're confusing them. ;)

      Also, applets run on the JVM just like applications do. The only difference is that the JVM is invoked by the browser (you can think of the JVM running inside the browser, but this isn't really true these days). So, his question is perfectly valid - does Jazilla start a JVM (to run applets you're browsing to)that runs on the JVM the browser itself is running on? Or does is start a seperate JVM? Good question - although I bet I can guess the answer...

    4. Re:So, using Javascript and Java... by recursiv · · Score: 4, Informative

      Hold on there skippy. Java applets ARE Java.

      I think what our friend Exiler here is trying to say is that Javascript has nothing in common with Java except the name. And if I'm to believe the person who told me, Javascript had a different name while it was being developed but Sun exerted sufficient pressure on the neccesary parties to change the name to sound like Java.

      Quick recap:
      Java Applications - Java
      Java Applets - Java
      Javascript - Not Java

      I hope this helped.

      --
      I used to bulls-eye womp-rats in my pants
  5. its interesting by jeepee · · Score: 5, Insightful

    dont get me wrong i think its an interresting project but why write in Java a software that is already available on a huge variety of platforms (its mainly the advantage of writing java apps).

    also Mozilla is lacking a bit of speed im sure you wont help in java.....

    1. Re:its interesting by darkheavy · · Score: 4, Interesting

      A year and a half ago I was involved on the development of a Digital TV Set Top Box.

      As User Interface Developer one of my duties was the analysis and selection of an embedded web browser. My bet was a Gecko based one, but implement it for the Nucleus RTOS was out of the question, so we should point to a propietary browser license.

      If this project was so evolved in that moment it would have been a serious alternative.

  6. OS X compatibility by snitty · · Score: 2, Interesting

    It seems to not work with OS X using instructions above, perhaps something else has to be done.

    --
    Modular Redundancy--Because 4 out of 5 Nodes agree
    1. Re:OS X compatibility by LtSmith · · Score: 2, Informative

      Well I was able to start it with:

      java org/jazilla/Jazilla

      from the jazilla directory.

  7. Jazilla: In case your computer was too fast by Horny+Smurf · · Score: 4, Funny

    Combine the speed and java with the speed of Mozilla.... I bet you can reboot into windows, run IE, and get 3 first posts before Jazilla starts up.

    1. Re:Jazilla: In case your computer was too fast by Jon_E · · Score: 2, Insightful

      Wow - I wonder if people would be saying the same thing about other languages if there was a lot of poorly written C++, C, or even assembler out there. Putting everything under the sun in your jars and classpath coupled with an improper understanding of code optimizations are typically more at fault here.

      Mozilla (like KDE) is more memory consumptive thanks to a combination of poorly hacked eye candy code. Then when you start swapping pages out - it might actually be time to drop more memory in your box.

      Why not deal with the real beasts here? - the integration of Java with X11 and Win32. All it takes is one quick look at the number of layers of indirection that MS provides to see that a poorly executed language set like ActiveX is going to outperform Swing or Jimi every time on Windows.

  8. Re:Why? by mcgroarty · · Score: 5, Funny

    Hee. I told him it would get him laid, then forgot to mention it was a joke. A year and a half later, it was just too funny not to let him keep running with it. Shh! My bad!

  9. Re:WHY? by Tablizer · · Score: 2, Funny

    mozilla is slow. java is slow. jazilla is slow^2

    I wonder if Intel is backing this project. They desparately need a reason to sell high-end chips.

  10. Applets support? by netsharc · · Score: 4, Funny

    Does it have support for Java applets, or do you need to install the Java plugin to have applets? :P

    --
    What time is it/will be over there? Check with my iPhone app!
  11. mmmm by loudici · · Score: 3, Interesting

    any idea why anybody would want or need to use that?

    mozilla runs on at least as many platforms as any JRE, and many more if you expect swing to work properly.

    i don't get it.

    --
    Dev elpizw tipota, dev phoboumai tipota eimai lephteros http://euclidian.org
    1. Re:mmmm by OmniVector · · Score: 2, Interesting

      simple: because the default HTML rendering toolkit for java sucks. The ability to have a mozilla like rendering engine built into java makes it easy to write apps in java that need web browsers built in.

      --
      - tristan
    2. Re:mmmm by bill_mcgonigle · · Score: 4, Insightful

      any idea why anybody would want or need to use that?

      They wouldn't. It's not about the users, it's about the developers.

      I use Mozilla, but I rarely hack on it. Why? I hate C++. It's a miserable language for developing an application. Java, on the other hand, is a great language for application development. The performance issues will melt away very soon as both the JRE and hardware improve. If I find a problem with Jazilla, I'm very likely to try to fix/enhance it.

      Plus, I happen to know both C++ and Java, but most kids coming out of school have never hacked C++. They've all hacked Java. These are the most likely hackers to work on a web browser.

      Let's come back in a year and see if Jazilla is more interesting to users, when it's fast, stable, and pretty, due to all the volunteer efforts.

      Short of a WxRuby port of Mozilla, this is what really has me interested.

      --
      My God, it's Full of Source!
      OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
  12. Re:Slow Enough by Tablizer · · Score: 5, Funny

    I think Mozilla is slow enough, thank you.

    It allows you to close tricked-into Goatse windows before they are finished. Goatsephobia has changed they way people browse. Slow is in.

  13. Does it compile with gcj? by Ed+Avis · · Score: 2, Interesting

    I wonder whether the RHUG people will be able to build Jazilla using gcj and so create a native binary package. Then we could see whether it is faster or slower than Mozilla.

    --
    -- Ed Avis ed@membled.com
    1. Re:Does it compile with gcj? by greenrd · · Score: 2, Informative
      I wonder whether the RHUG people will be able to build Jazilla using gcj

      No. I've never encountered an open source JVM that fully supports AWT - let alone Swing. So they are useless for most desktop apps.

      Let me know if you find one...

  14. Re:Why? by FatherOfONe · · Score: 4, Funny

    Ok grandpa it might be time to upgrade your 386sx to some more modern processor. You will be shocked at how much faster late 90's technology is, and if you want to live on the edge you might even try some system built in the last few years. You will find that any of those run Mozilla and or Java great. Oh yeah, while you are at it you will find that 16MB of RAM won't cut it anymore, you should probably get around 512MB. The good news is that you can get a system like that for under a grand. I do realize that living on social security makes it tough to buy a new system every 20 or so years, but just stop buying so much crap from those late night tv ads, and you should have enough saved up in no time.

    --
    The more I learn about science, the more my faith in God increases.
  15. Why... by valis · · Score: 5, Informative

    Since half the comments so far seem to be "What is the point" I'll offer one justification.

    There is still a serious lack of a good modern HTML browser for embeding in java applications. Swing provides an EditorKit which handles HTML3 reasonable well, but most of the other quality offerings are non free.

    Major Java IDEs (Eclipse, NetBeans) have projects to implement something like this. Many other Java applications could potentially benefit. It's a good idea.

  16. Re:woo.. by KrispyKringle · · Score: 2, Insightful

    No, you can't. I assume this was intended as a joke, but I may as well point out that unless a program is not an applet, unless it implements the interface Applet (I think thats the right name...). You can't run any random Java program from a web browser or applet viewer.

  17. Re:Too much time on their hands by botzi · · Score: 2, Interesting
    Everything else about Java is horrible, like speed issues etc.

    Whatever, dude...

    First of all execution speed is not a *major* issue anymore(even if it's still a problem for some kind of applications), and can not in any way be defined as "horrible".
    Second, what exactly do you mean by etc., because as I recall it, Java offers short developpement periods , full portability(as you stated), and is still in developpement etc... So if I're you, I'd immediately start reading the JVM specifications.....;o)

    --
    1. No sig. 2. ???? 3. Profit!!!
  18. Re:Why? by the+gnat · · Score: 3, Interesting

    Some of us prefer not to upgrade our computer every fucking month because all of a sudden the idiots at Microsoft/Apple/Netscape decide that our computing experience is incomplete without shiny new throbbing widgets. Even when I'm on a screaming fast computer, I throttle down every single bit of eye candy. Result: I can use my computer for actual work. Even so, I find that either Mozilla (on Linux) or IE (on XP) is entirely capable of reducing a Pentium 4 with plenty of memory into a quivering heap of dung.

    Example: I'm often forced to use Microsoft Word. However, I have yet to utilize any feature that is not present in Word 5.1a, which runs quite happily on my stone-age PowerBook. Neither do any of my coworkers or collaborators, apparently; most of them would be served just as well by Emacs or Vi. That doesn't stop them from mailing me Word 2000 documents (nor does the fact that I run Unix pretty much everywhere). Result: I can't use my office computer or my Mac, and I have to walk down the hall to use one of the shared PCs. This is progress?

    In short: fuck you. Fuuuuuuuuuuck you.

  19. It is OS X compatibility! by patrickoehlinger · · Score: 3, Interesting

    Works and looks great for me screenshot.
    Doesn't take care of CSS, but hey I like to have another choice. Rigth?!
    I was using the same command to start it:
    java org/jxul/xulrunner/Main &

    --
    >> Had I been going to bed earlier every night? Have I been sleeping later? Has Tyler been in charge longer and l
  20. Three first posts? by crashnbur · · Score: 2, Funny

    But wouldn't the second and third be second and third posts?

  21. What "Write Once, Run Anywhere" Really Means by Anonymous Coward · · Score: 5, Informative
    From the beginning, Sun intended the Java language to be platform-neutral. That is, Java programs are written to run on a Java Virtual Machine instead of on a physical computer--it's the Virtual Machine that runs on a real computer. Thus a programmer can develop a program that will work on the sort of computer he likes and expect it to run on the sort of computers that his customers like, because it runs inside of the Java Virtual Machines on those computers.

    This means that when you go to the store to buy an application, you don't buy the "Mac version" or the "Microsoft Windows version." You buy the "Java technology version." And as long as you have the Java Virtual Machine--which is free, and available from a large number of vendors--you can buy the program without having to worry whether it's going to run on your particular computer.

  22. Using Jazilla as an applet inside Webmin by karlmiller · · Score: 2, Interesting

    I think this might be a really cool idea if someone could do something like this. Say for example someone is in a really restrictive corporate or government environment which only allows HTTP and HTTPS out, and no SSH or anything like that. Now say for example you have Webmin installed on your home computer set to port 443. You use your work web browser to view your home's Webmin server inside SSL, and then if Jazilla were made into an applet and put inside a Webmin module that sends all of its information through the Webmin SSL encrypted connection, similar to the way Shell-in-a-Box does, one could use a really nice browser to surf in complete privacy.

    Well, it's just a thought anyway.

  23. Re:Too much time on their hands by botzi · · Score: 2, Insightful
    But the speed thing is frustrating, especially when developing.

    Well, yeah, I do agree that waiting for the damn window to appear some 30 secs after launching the application is frustrating. So definitely the GUI and some input/output routines need improvement, but at the same time, once the JVM's started and the program initialized, there isn't so much to be said about how slow Java is......
    I was recently suprised when a friend of mine did a benchmark on recursion functions and JVM performed better than gcc -o2..........
    Yeah... well it's clear that when neither Mozilla nor Java could fly, Jazilla will hardly walk... but that doesn't make it a useless project.....;o)

    --
    1. No sig. 2. ???? 3. Profit!!!
  24. Re:woo.. by AndrewRUK · · Score: 2, Interesting

    You already can, with Mozilla, as this screenshot shows.

  25. Another good reason. by pecosdave · · Score: 4, Funny

    Imagine this uncommon but very possible setup.

    You are working on a weekend all by yourself, you get the average of one phone call every 3 hours and nobody EVER comes into the office on weekends but you, the poor tech support guy.

    You work for a small company that uses a Netware 5 file server for the firewall. (Remember, Netware 5 is Java based)

    You don't have admin access.

    The server doesn't have the console locked.

    The server IS the firewall, and therefore can be outside of it.

    You REALLY want to get your dose of porn, which the firewall wont let you do.

    The firewall is unlocked........

    Yep, time to load up a JAVA browser on the file server for your own porn surfing pleasure.

    --
    The preceding post was not a Slashvertisement.
  26. Re:Why? by pyrrho · · Score: 2, Insightful

    I find this line of reasoning a bit pathetic.

    Just because we have more CPU power do you think that justifies wasting this power? I guess that Java is for people that already have computers more powerful than they can handle? Personally, I'd rather even give my cycles to SETI@HOME than give them to some VM.

    And Java is still slow. Or Swing, or whichever excuse... perhaps it's slow because my VM is optimizing my code behind the scenes.

    You've lowered your standards for performance, that's the whole story. Your reason is neither good nor bad nor compelling to someone that still values performance.

    These Java processes take 15 meg and up on solaris, at least. They half the power of my machine, they half it's value. I need two machines instead of one. Is that good? Why the hell should I care if they run just as well as old applications on old machines? Why in the hell would I be happy about that... you think I'm nostalgic or something?

    --

    -pyrrho

  27. Re:Too much time on their hands by jfengel · · Score: 4, Insightful

    There's more to Java than cross-platform. In fact, with all the various versions running around, I'd say its cross-platform qualities are significantly overrated.

    Java is far more important in its security and software engineering features (which are actually very closely related). I find that I'm far more productive in Java than I ever was in C++ and C. I find that's even truer for less experienced programmers. Java increases the ability of programmers to work together through better memory management, better type enforcement, exceptions, etc.

    You don't really need to hear all this. At this point you either believe it or not and I'm not going to convince you.

    I haven't been able to compare it to C#, which appears to offer many of the same advantages over C/C++. I think of Java in a different class from languages like Perl and PHP, which are less well-suited to teamwork, which is an important goal of mine.

    So the reason for this is not because we need another browser (boy, do we not) but because Java needs a browser for use in its environment. Java is still very poor on the client side, for a host of reasons, one of which is its lack of browser integration. Applets were always a stupid idea, I'm afraid, because software distribution via applets just isn't ready and the toys are generally beneath contempt.

    You need a browser as part of Java. It's the best way to view text, whether for help, mail, etc. Java has several, but none are really any good because they're not 100% compatible with the lastest rounds of HTML/HTTP/Javascript. A browser, compatible with IE and Mozilla, will help make Java a decent client environment.

  28. if you like VM's by DrSkwid · · Score: 2, Interesting

    you should pay a visit to

    http://www.vitanuova.com/inferno

    It's a virtualised machine that runs hosted on Windows, Lunix & FreeBSD (& maybe others) and also runs native on some hardware (such as my IPAQ)

    It has some really neat features, many borrowed from plan9.

    Version 3 and below is not totally open (the source is $100).

    The next version is considering making changes (see http://www.vitanuova.com/inferno/4thedoverview.htm l )

    Even if you never downlaod it, it's still worth reading the documentation.

    Inferno follows the concept that threads are cheap (as an experiment someone recently had 90,000 concurrent threads passing a message from one to the other (admitedly it took .84 secs per tx but still)

    You'll wonder why anybody uses Java at all.

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    1. Re:if you like VM's by Zaaf · · Score: 2, Informative
      What the fuck is Lunix?

      Lunix is the well known linux derivative for everybody who was into computing in the (early) 80's, namely the C=64 and C=128.

      A little googling might have done wonders for your post. ;-)

      Zaaf

      --

      ---
      "Multiple exclamation marks are a sure sign of a sick mind." (Terry Pratchett)
  29. I guess... by Markus+Registrada · · Score: 2, Funny

    I guess there's probably no option to turn off Java support.

  30. Do not feed this troll by ThufirHawat · · Score: 3, Funny

    Troll signs (à la "worm signs" in Dune):
    - dogmatic offensive pseudotruths (1st line);
    - meaningless insult, liberally sprinkled with swear words (2nd line);
    - main troll bait, hoping that mozilla users will feed him (3rd line);
    - deadbrain conclusion (4th line).

    Leave him alone and do not feed him, please.
    I believe that if people want to experiment, they should.

    --
    Thufir Hawat
    Part-time Mentat
  31. Re:Exactly. Whole point of Mozilla was portability by platypus · · Score: 3, Funny

    . But i wont be using it since Firebird runs fine

    It can't hurt to have a web browser besides you database.

  32. A friendly suggestion by pongo000 · · Score: 2, Insightful

    What's needed in this world isn't another clone of *zilla written in the language du jour. The problem with anything written with the Mozilla (or Gecko engine) is speed: Why should it take more than a few fractions of a second to render HTML?

    And yes, it's been done already: Dillo is a blindingly-fast HTML engine/browser that runs from a binary less than 300Kb. No, it doesn't support frames, nor Javascript, nor any of the other kitchen-sink items all other browsers strive to be. Instead, Dillo sports a plug-in interface (open-source, naturally) that allows for all of this to happen, if the user wants it to happen.

    So here's my suggestion: Take a cue from Dillo and go for speed, not for bloat.

    Oh, and I should add that Dillo renders /. and Yahoo just fine.

    1. Re:A friendly suggestion by thinkninja · · Score: 2, Interesting

      Webstandards probably account for most of geckos 'bloat'. I'm not going to evangelize but there's no getting around the fact that they are important.

      --
      "The number of Unix installations has grown to ten, with more expected." (Unix Programmer's Manual, 2nd ed.; june 1972)
  33. Re:Why? by FatherOfONe · · Score: 5, Informative

    Ok it was kinda a joke but I will address it more seriously this time.

    1. Java is slow. This was true in 1.0 release of Java, but with todays JIT's the speed difference is small. I can point you to numerous sites, but at the end of the day it comes down to good coders. Your experience must be with some bad coders.

    2. SWING is slow. This again use to be true with 1.18 + SWING and 1.2x JVM's the 1.3 and 1.4 have increased SWINGS speed considerably.

    3. JAVA takes up too much memory. Yes it is true that the base JVM can take around 5-16MB of RAM per JVM instance. But with todays systems, on a lot of applications that isn't too bad. Now the core issue is that it takes up that amount for EVERY JVM that is used. So to your point: If I launch a Java calculator program, and then launch a Java notepad, I will have lost around 10-32MB of RAM in just JVM's. This is currently true, however it is being addressed and should be solved with the 1.5 release. Once this is done, then it would be possible to have ONE JVM running on the system for all Java applications. The JVM could launch at startup and then even the inital load times would be greatly reduced. I believe that this is the way Apple is handling Java (Can't confirm it though).

    So, when this issue is resolved, running Java on a machine could mean only giving up a maximum amount of 16MB of RAM for the JVM and the rest for the application. To be honest that is what most Java programs are doing today. Most run as an application server and run Servlets and JSP's all day long.

    Another poster mentioned that you use the correct tool for the job. I agree, but I will add that the issues for not using Java for speed has and is going away. The reasons for not using it for memory are going away on most computers.

    We do agree on one point. Most people do have computer processors far greater than they need.

    Lastly, if you are having so many issues running Java apps on your system you should look at newer JVM's. They make a huge difference.

    --
    The more I learn about science, the more my faith in God increases.
  34. Another justification... by j3110 · · Score: 4, Interesting

    Maybe I want to write an application in Java that has a more dynamic user interface. Swing makes things like this hard. What if you could make a great GUI in seconds in Java using dynamically generated XUL with call outs to Java instead of broken impared JS.

    I'm all for duct taping a rendering engine on the front of real Java just because I don't like to deal with any of the popular layout managers for swing. Ideally, I would have my own Java widgets (because swing gets extendible widgets right like no other GUI API anywhere) that were rendered in a sane fasion (plus the native XUL widgets for when you don't need to extend them).

    Swing layout is one of the reasons Java GUIs seam to be broken. If you resize a window, you get a lot of grey boxes. Sure, Mozilla could use some double buffering on their resizing, but it doesn't leave me with a gray screen instead of seeing how the components will look after resizing.

    It would be even better if you could extend the XUL language in some manner with custom widgets.
    For example:
    XUL.registerComponent(MyPhoneEditor,"pho neEditor", XUL.TEXT);

    These are all the more reasons why we need a good renderer in Java.

    On a side note:
    Anyone notice that with Java 1.4.2, jazilla starts faster than mozilla? A little over a second for me. It just won't render any web-site properly :) I'm impressed with the speed. Maybe it will send some of those idiot trolls about Java being slow back to the drawing board so they can complain about something else for a while when it gets done.

    --
    Karma Clown
    1. Re:Another justification... by flashman78 · · Score: 2, Informative

      > Swing layout is one of the reasons Java GUIs seam to be broken. If you resize a window, you get a lot of grey boxes. Sure, Mozilla could use some double buffering on their resizing, but it doesn't leave me with a gray screen instead of seeing how the components will look after resizing.

      There is a new method in 1.4, the programmer needs to call this method before creating any windows....

      try
      {

      Toolkit.getDefaultToolkit().setDynamicLayout(true) ;
      }
      catch (NoSuchMethodError e)
      { // not availble before 1.4
      }

      This will fix the problem...

  35. Re:Why do we care? by csnydermvpsoft · · Score: 2, Informative

    2) Java will always be slower than a native, non-interpreted language, even if you compile it into a binary.

    Not true. First of all, Java is compiled, except it's compiled into byte-code instead of machine-code. This is unlike languages such as PHP and Perl, which must recompile the text source code into machine-code or byte-code each time it's run. While not as fast as machine-code in most cases, byte-code is definitely much faster than interpreted.

    One advantage of byte-code to machine-code, in addition to portability, is that it can actually run faster in some cases. My friend did a project for his super-computing class in which he tested a simple algorithm written in both C++ and Java to see what would run faster. He used every level of gcc optimization, as well as a few JVM's. As expected, the compiled C++ version kicked the pants off of the Sun and Blackdown JVM's, but the IBM J9 JVM was around 50% faster than the C++ version. This speed advantage is due to the fact that IBM's JVM is able to optimize the code at runtime, while gcc must do all optimizations at compile-time.

    Most people's misconceptions of Java are due to two factors: An incredibly shitty MS JVM and the horrid Swing GUI toolkit. When Sun wrote JWT and Swing, they tried to stick to the write-once, run-everywhere philosophy as much as possible. Unfortunately, the different OS's have very little in common when looking at GUI functions, so they basically had pixel capabilities to work with - no widgets. This means that the widgets are all done in Java instead of using libraries available from the host system. This is why most Java applications look nothing like the operating system they are running on, and run very slow. The SWT GUI toolkit, which is part of the Eclipse Project, uses the host system's libraries to render widgets wherever possible. This leads to an application that runs much faster and looks just like any other application for that operating system. Of course, they have to implement SWT for every host system they want to support, but it still runs on systems where support is incomplete/missing, albeit more like JWT/Swing.

  36. Re:Exactly. Whole point of Mozilla was portability by wossName · · Score: 3, Funny

    Hmm, I had already forgotten that there was a database with the same name.

    --
    Someone is wrong on the Internet!
  37. Swing LayoutManagers by Anonymous Coward · · Score: 2, Informative
    Swing layout is one of the reasons Java GUIs seam to be broken. If you resize a window, you get a lot of grey boxes.

    The stock layout managers suck ass, but there are better ones out there. If you're doing GUIs in Swing, check out TableLayout, HIGLayout, FlexGridLayout. These are all free and Free. There are probably other ones out there too.

    I've been using TableLayout and although there are some little things I don't like about it, it does let me code Swing GUIs without the pain associated with the stock layout managers. Haven't tried the other two yet but they look interesting.

  38. Re:Why? by larry+bagina · · Score: 2, Interesting
    I've heard that old Word Perfect was mostly 8086 asm code... which is one reason they took too long to release a windows version, and lost their dominance to Word.

    You can always run it under dosbox or dosemu, though.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  39. Almost right - Mozilla should be part of the JVM by dgenr8 · · Score: 2, Interesting

    What we really need is for Mozilla to be bundled into Java! Think about it... Mozilla binaries already exist for all of major platforms on which Java runs. All that's needed is a Java wrapper for it and presto, reliable, native-optimized browsing (and more) anywhere you've got a JVM.

  40. Re:Who pay for it? by JohnnyCannuk · · Score: 4, Insightful

    +3 Insightful? WTF? Did the all the anti-Java FUD /.ers get their mod points today?

    First you place the blame on Java as one of the bloat/UI "candies" that are forcing people to upgrade thier PC. Then you say that Java has mostly expanded on the server market. So which is it? They aren't big currently big in the GUI department (although if you go here, you'll see that is changing). So tell me again how Java, which runs mostly on servers, is forcing people to upgrade their PC because of UI bloat?

    Or how this is part of this conspiracy since Java is made by a company that doesn't make a desktop PC, a company that until recently didn't even support the x86 architecture very well, a company that makes high-end servers and workstations that have exceeded your "typical" PC mentioned above for years?

    I agree that Java does on the server "what was easy to program and cheap to run using Apache/CGI/PHP/Perl/Python". It also does it faster (Python, by about 20%), with more maintainable code (Perl) and more securely (CGI). Apache (and by extension Jakarta) has always worked hand-in hand with Java quite well. But then, there are times when Perl and Python are the better choice, so use the right tool for the job.

    Comparing Swing to Flash is like comparing Gnome with HTML. That's right....apples and oranges. Excellent strawman attack but it doesn't work. The two are for totally different UI environments.

    Mods, just because you don't know Java or agree with the FUD doesn't make this guys tripe right.

    --
    Never by hatred has hatred been appeased, only by kindness - the Buddha
  41. Re:Why? by TheNetAvenger · · Score: 2, Insightful

    Once this is done, then it would be possible to have ONE JVM running on the system for all Java applications. The JVM could launch at startup and then even the inital load times would be greatly reduced. I believe that this is the way Apple is handling Java (Can't confirm it though).

    So, when this issue is resolved, running Java on a machine could mean only giving up a maximum amount of 16MB of RAM for the JVM and the rest for the application. To be honest that is what most Java programs are doing today


    After more than 10 years of getting computer users to OSes that separate and protect applications and processes, now we are going back to the old monolithic model, so that one bad JAVA app can compromise all other JAVA apps within the JVM.

    Give me a break guys... This is not the direction a platform or programming model should be pushing developers just because Sun cannot get performance to a reasonable level.

    Heck even look at VB and its runtime engine, it even consumes less memory and runs as an isolated process. (And VB has tons of stuff in it that weighs it down considerably.)

    Come on Sun, give us what you promised six years ago. Quit wasting time suing companies and actually put some work into development.

    No wonder that even the Server developers at Sun have been complaining about JAVA and its performance on their own OSes.

  42. Download counters by Malcolm+Scott · · Score: 2, Interesting

    SourceForge's download counters claim that Jazilla M1 has been downloaded zero times. Looks like either no-one's actually bothered to download the thing at all, or the mighty SourceForge has failed us. Ho hum...

  43. Re:Too much time on their hands by Jord · · Score: 2, Interesting

    Probably should stop using Front Page then. Mozilla follows the standards which I.E. does not. If you write your code to standard then you would not have to "tweak" it for Mozilla. Granted you would probably still have to tweak it for IE.

  44. Re:Why? by FatherOfONe · · Score: 3, Interesting

    How said anything about one bad Java App taking down the rest of them? By no means did I say that someone could do something like:
    System.exit(1) and take down every running application...

    Also understand that this is being developed by multiple people/vendors NOT SUN. It is in their community process and I hope that Apple is helping with this. I would say that most of the work being done on Java is not from Sun, but IBM. (Just my observation). However, Sun has final say (kinda like some kernel guy...)

    You say that VB uses a smaller runtime engine than Java.... SHOCKER!!! How much of it is built in to Windows that it doesn't need to load??? How well does that VB app port to any other platform?

    You mention that Sun's server developers complain about Java. You are correct, but not for the reason you mention. They complained about the speed of their JVM to that of the Windows JVM. Sun in it's wisdom decided that to make Java more successful, it needed to make sure that the JVM for Windows ran great. They focused so much attention to it that the one for Solaris suffered. That isn't the case anymore. Now does that mean that every developer in Sun loves Java????? NOPE! Every large company has sharp people who disagree on stuff. I bet you will find people in Microsoft who think Linux rocks and WindowsXp isn't that great.

    Another point you made is you want Sun to give the developers what they promised six years ago. I for the life of me can't think of anything they promised except a write once run anywhere thing. I would say that they have 'mostly' achieved that goal. I run Java stuff on NetWare, Windows, Linux, Solaris, AIX and various phones and palm/pocket pc systems. Other than the small devices, no modifications of code have been necessary!

    If you give me a great IDE in Java and it runs 10% slower because of Java, I generally don't care. i.e. Oracle Jdeveloper 9i, is the example. I now have an IDE that runs acceptable on most platforms!

    The only real problem with Java is that so many kids are taking it today (I have heard it is being taught in more colleges than English), and those kids are being put in to positions they are not ready for (Bad economy, that wants cheaper labor). That coupled with the fact that it is a relatively new language screams for performance issues. This isn't the languages fault.

    If you remember when C was first around, just to write a very simple program almost always took 5k (we laugh at that now), but I remember developers (myself included) who thought "What a piece of crap!! I can do that in Assembler in 300 bites and it's startup time is way faster!
    What percentage of code is done in Assembler nowdays? Heck the same could be said about COBOl.

    --
    The more I learn about science, the more my faith in God increases.