Sick of Java

This is a rant that is bordering on belonging in Off Topic. In fact, it's almost worthy of a blog. But I hate blogs (I didn't write the 'Why I Fucking Hate Web Blogs' article, but I would have if it hadn't been done).
This topic is inspired by:
http://today.java.net/pub/a/today/2005/07/14/sleep.html
WTF is the use of a Perl-like scripting language for Java. IMNSHO, People that still code Perl should be eligible for early retirement. Sure it was a wonderful language, totally dynamic, don't have to declare anything pretty much brand new concept when it originally came out. It was revolutionary.
But we've got Python, Ruby, and PHP now, not to mention 50 million other scripting languages that only a few people (their original developers, I think) use. Perl was a great idea, but the new languages, while based on Perl, are much easier to read and write. They're better languages.
Ok, Java. I'm really pissed off right now about the number of scripting languages available for Java. I can't even list them all... Jython, Groovy, Beanshell, Javascript, Jacl, Sleep, Nice... to name but a few. I think there's even a JRuby interpreter now. Sure having more options is a great thing, but who really wants to context switch between scripting language designs every time they need to write a script for Java.
Originally, I thought that Sun was going to try to standardize on one language. I'd heard rumors that it would be Groovy or Beanshell. Both of these languages have JSR's standardizing them. But then they turn around and put javascript in the new JRE.
Now, a short aside ranting on XML. Java and XML are married with children. Its virtually impossible to work on a Java app without coding some XML. All the frameworks love XML. Ant is XML. Maven is XML. TestNG is XML. XML XML XML. Bah. XML is ugly and a waste of bytes. In my personal project's I've attempted to avoid XML as much as possible, but this SEVERELY restricts me in my choice of Java libraries. There must be something wrong with me as a Java developer. All the others seem to think XML is a good thing.
Back to Java. The JRE is too big. Rather than choosing what is best, Sun seems to have decided to throw every single option into the runtime environment in hopes that it will attract developers that will use one or the other of those options. (I haven't yet installed java.lang.KitchenSink, but I hear its coming)
Back to those pesky scripting languages. Why does Java need a scripting language? Because its too big and bulky to be used for these simple tasks by itself. Nobody would ever dream of writing a scripting language for Python! We don't even need a data definition language (like *drumroll* XML) for Python. We can just code it in Python itself.
But scripting languages are powerful. Why does Java need a scripting language is a stupid question. A good question, with an obvious answer, is why do scripting languages need Java?
Ok, what about package distribution? Some of you probably know about my efforts to standardize Java package distribution on Arch Linux. It's horrible; every major program has to include copies of the external libraries that it needs.  There's nothing remotely resembling dynamic linking. THis problem is being lessened by the fact that a lot of external libraries are getting folded back into the JRE. Which, of course, exacerbates the other problem -- the size of the JRE. Its a pretty big download, isn't it? Not really worth it if you just run one or two Java apps.
I am a Java programmer. I have been for quite some time. I'm quite good at it. I enjoy it... or at least, used to enjoy it.
I think the problem here is that I like Arch Linux. Arch users like a KISS philosophy. I've tried to apply this philosophy to Java programming. I've managed it with a fair amount of success, but it seems no other Java developers like to keep things simple. So in trying to keep my Java programs simple (read: elegant), I have to fight the language, the interface, third party libraries, and documentation. Its possible, but I'm tired of fighting it.
Finally, I'm not saying there's anything wrong with people who use Java. They seem to like it. It seems to be good for enterprise work. Its just wrong for me. I guess Java is to programming languages as Red Hat is to Linux Distributions.
I didn't really have a purpose in this rant. It just saddens me that I feel this way about something I've loved for a long time. I find it depressing to know that very few people here will disagree with me (perhaps soniX, arooaroo... Mr. Green).
Dusty

Dusty wrote:Now, a short aside ranting on XML. Java and XML are married with children. Its virtually impossible to work on a Java app without coding some XML. All the frameworks love XML. Ant is XML. Maven is XML. TestNG is XML. XML XML XML. Bah. XML is ugly and a waste of bytes. In my personal project's I've attempted to avoid XML as much as possible, but this SEVERELY restricts me in my choice of Java libraries. There must be something wrong with me as a Java developer. All the others seem to think XML is a good thing.
I don't understand XML configurations either... I remember when XML was new, I had been working on a message transfer system from VMS flat files and PLCs all the way up to an Oracle DB on a unix box... there was no real good way to pass messages because some parts were "user entered data" - so what I did was to format the data seperated with carets (^) because it's distinct enough, and escape carets from the message...
you would get data like this:
1234^XXIFIDD^Y^N^1000^Some data^More data
Now that's fine and dandy, and at the time of XML's birth, was the best thing to do vs specifically defined length (i.e. chars 1-10 are the ID, 11-14 are this, 15-16 is that).  The problem is that on the recieving end, you need to have rules defined for each message type in order to parse/validate it properly before jamming it in the DB... the message that sent the data above needed to know that the 1st and 5th tokens were numeric and the 3rd and 4th were boolean.  Yeah, you can add meta data in there, but it would start making things more and more messy...
XML would solve this issue very easilly, as far as the meta data and delimiting goes (simplified version):
<int>1234</int><str>XXIFIDD</str><bool>Y</bool>...etc...
doing it this way also allowed for an easy mechanism to send multiple rows in one message:
<row><int>1234</int><str>XXIFIDD</str><bool>Y</bool>...etc...</row>
<row><int>1235</int><str>XXIFIDD</str><bool>Y</bool>...etc...</row>
Sure all this can be done other ways, but the standardization and uniformity gained through XML message passing is great...

Similar Messages

  • So sick of having trouble with Java and Mac!

    I bought myself a brand new MacBook Pro OS X 10.5.8 for around a year ago. Since the first month I've had so many problems with my Java. It's eighter not working, or its is so slow that you can't work with it, at all.
    Yesterday I was playing a game, were you're in need of Java. It worked perfectly. Then suddenly, it stopped again. And I tought, since I had not used it for a while, I just had to update it. So I clicked at the "software update" and updated everything. I don't think Java was at the list. Still wasn't working. So I went to Apple.com and searched for the "Mac OS X 10.5 update 10" and found it. I downloaded it, and installed it about five times or something, still not working. I've tried everything that came to my mind to try fixing it, but nothing works. What can I do? I'm so sick of having this problem every time I'm in use of the mac. Realy start to regreat the expensive bought of this mac.
    Please, someone help me. I hate the tought of wasting 16 000,- Nok at this pc, when it's not working the way I'm using it..
    And sorry for the bad english, I'm only 15..

    Hei Kristine, er engelsk ikke så ille!
    Very Important, how much Free Space is on your Hard Drive first of all? Click on the Macintosh HD on the Desktop, then do a Get Info on it.
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • So sick of having Java problems on my Macbook Pro

    I have problems with Java with every single browser on my mac. I have tried 6 different browsers and I cannot run any Java applications on any of the browsers. Every single time I open RuneScape or Minecraft, there is just a black screen. I can't even re-install Java since it is only available through software update...
    Does anyone know a possible fix for this?

    Although I don't play games, I went to both websites and had absolutely no problem with either; in fact, the Runescape started all by itself. So, there must be some sort of problem with your system - my first suggestion would be to repair permissions (Disk Utility in Applications -> Utilities). Restart.
    If that doesn't do it, I would do this next: go to the Apple download page and download the combo updater and install that again. After the install, make sure you repair Permissions and restart.
    http://support.apple.com/kb/DL1349

  • OMG I'm getting sick of this Java disk permission problem!

    I have Snow Leopard in my 2006 Intel 2.0 Duo Mac. I see many people writing about the same problem for months now. On my computer I totally reinstalled eveything a couple months ago. Many times I can not shut down and then tonight I couldn't get to my iMovies or into Photoshop. Every time this happens I use disk utilities and repair permissions. It comes up with lots of Java stuff needing repairs. After the repair permissions is over it works okay again until a couple of daysfrom and and here we go again. geeeeeeeeze! I'm getting tired of this. I have read many a posts regarding this and I'm wondering will this problem ever be fixed?
    I wish I had the money to buy a new computer but I don't. If it's because of my old computer then I wish Apple would just let me know that fact. Anyone know of any fixes?

    Many times I can not shut down and then tonight I couldn't get to my iMovies or into Photoshop
    Repairing permissions won't solve this problem. The information you see when you verify or repair permissions aren't errors that need repairing, they're just messages.
    If you see anything SUID related when verifying permissions, that can be ignored >  Mac OS X: Disk Utility's Repair Disk Permissions messages that you can safely ignore
    If you can't shut down your Mac, you may have one or more apps still running. If necessary, you can "force quit" apps. Open the Activity Monitor app located  in /Applications/Utilities. Select My Processes from the pop up menu top right corner of the window. Select the app then click the red force quit button.
    How much free space on the startup disk?  Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    iMac Intel, Mac OS X (10.4.4)   < your profile
    If that is correct, then your iMac's system software is woefully outdated.
    When you have problems with multiple applications (ie., PhotoShop, iMovie) the startup disk may need repairing.
    Follow the instructions for Using Disk Utility to verify or repair disks.

  • Calling a Web Service from Java

    Our java guru (who is out sick....AHHHH) created all the calls that are needed to access the web service that he has running. For example the call getLongList(String user, String password) will return a list of all outstanding transactions. He made a jar file that has service has class files for PortType, Service, Service Locator and Soap Binding stub.
    How do I call this web service from java? Do I have to import it into my classpath? or just call these parameters from within my java code?

    never mind...i got it

  • Java 2013-003 Update causing issues

    I own several Mac's; one Macbook and two iMacs, each with different versions of OS X and after installing the 2013-003 update I'm having major issues with Java. In fact since Apple decided they didn't want Java running on their OS's and in their browsers, I've had numerous problems.
    Today I was forced to install the 2013-003 update and when I try to run a website I use which requires Java, all I'm seeing is this message:
    Use the Software Update feature (available on the Apple menu) to check that you have the most up-to-date version of Java for your Mac.
    Clearly I've updated to the latest version and I've even tried installing the most up to date version of Java from Oracle's website yet I'm still having the same issue. I love my Apple computers but I'm getting really sick of the constant Java issues.
    Any ideas what's going on?
    Thanks.

    Would like to know the answer to this too.

  • Multiple problems with Firefox 3.6.6 - Java Console, Flash, PDF & opening

    running Windows XP with Firefox 3.6.6. I just upgraded to 3.6.6 & since then have been having multiple problems. 1) 3.6.6 takes a LONG time to load or hangs 2) As recommended Flash plugin updated to Flash 10.1. Subsequently Flash doesn't work. All I get when I use Firefox on any site is the F in a circle that indicates that flash is necessary to display the page. I have no problems with Flash on Google Chrome. 3) Java Console having issues. When 3.6.6 opens it says Java Console must be updated. So I update it. Then when it opens it says it's not supported & needs to be removed. Each time it wants me to restart Firefox to complete the task. If I say restart later cause I'm sick of opening & Closing again & again it pops up every 5-10 minutes & asks again. Please HELP!! 4) PDF files will not open since upgrade to 3.6.6. Having no issues with Google Chrome. It opens in miliseconds & runs everything but I prefer Firefox if it can be gotten to work right. Desperately need help.
    == Upon upgrade

    Please respond with a list of all of your Extensions.
    -type '''about:support''' in your URL/address/location bar and press the Enter key
    -click "Copy all to Clipboard"
    -paste into your reply
    <u>'''1).'''</u> Please explain "long time to load" in more detail; approximately how long? Hanging when: on startup of Firefox, during use (please list some sites/pages, if so), at shutdown?
    For hanging at exit:
    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.
    <u>'''2).'''</u> Could be caused by a Flash-blocking Extension (the reason for asking for your list of Extensions) or could be in your Firewall or AV/AS application. What Firewall and/or AV/AS applications to you use?
    See: [[Firewalls]]
    <u>'''3).'''</u> Again, the reason for asking for your Extensions. Is it Java Console or Java Deployment Toolkit in the error message. Need version numbers on both of the above. You may have some Java remnants from a prior Java version; Java does not clean-up after itself and we can help you remove some of those remnants, if you will supply the information. See:
    http://support.mozilla.com/en-US/kb/Java-related+issues
    http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    http://support.mozilla.com/en-US/kb/Java+Deployment+Toolkit+Blocked
    http://kb.mozillazine.org/Java
    Some users get confused about Java and JavaScript; here is some information:
    http://kb.mozillazine.org/JavaScript_is_not_Java
    http://support.mozilla.com/en-US/kb/JavaScript
    <u>'''4).'''</u> What are the results when you try to load a PDF file off of the internet? You need to check for an update of Adobe Reader (yours appears to be an older version) and after checking for updates to Adobe Reader, check your settings in Tools > Options > Applications for "Adobe Acrobat" Content Types. See:
    http://support.mozilla.com/en-US/kb/Options+window+-+Applications+panel http://support.mozilla.com/en-US/kb/Managing+file+types
    http://kb.mozillazine.org/File_types_and_download_actions
    <u>'''You'''</u> ~~red:<u>'''MAY'''</u>~~ <u>'''need to Update Adobe Reader for Firefox (aka Adobe PDF Plug-In For Firefox)'''</u>: your ver. N/A; current ver. 9.3.3 (important security update release 06-29-2010; see: http://www.adobe.com/support/security/bulletins/apsb10-15.html)
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: http://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    ''<u>You may be able to update from the Adobe Reader installed on your system</u>'' instead of going to the Adobe site and downloading. Start > Program Files, find and click Adobe Reader to open, click Help, click Check for Updates.
    ''<u>If you go to the Adobe site to download the current Adobe Reader:</u>''
    -'''<u>use Firefox to download</u>''' and <u>'''SAVE to your hard drive'''</u> (save to Desktop for easy access)
    ~~red:-See the images at the bottom left of this post to see the steps to take on the Adobe site~~
    -exit Firefox (File > Exit)
    -check to see that Firefox is completely closed (''Ctrl+Alt+Del, choose Task Manager, click Processes tab, if "firefox.exe" is on the list, right-click "firefox.exe" and choose End process, close the Task Manager window'')
    -double-click on the Adobe Reader installer you just downloaded to install/update Adobe Reader
    *<u>'''NOTE: On Vista and Windows 7'''</u> you may need to run the plugin installer as Administrator by starting the installer via the right-click context menu if you do not get an UAC prompt to ask for permission to continue (i.e nothing seems to happen). See this: http://vistasupport.mvps.org/run_as_administrator.htm
    *'''<u>NOTE for IE:</u>''' Firefox and most other browsers use a Plugin. IE uses an ActiveX version. To install/update the IE ActiveX version, same instructions as above, except use IE to download the ActiveX installer. See: [[ActiveX]]
    *Also see: http://kb.mozillazine.org/Adobe_Reader ~~red:'''''AND'''''~~ [[How do I edit options to add Adobe to the list of allowed sites]]

  • Quo vadis Java?

    I have been a programmer all of my adult life and a software developer ever since I can remember. My language of choice is the IBM OS/390 Assembler and the IBM mainframe is my world. All the things that seem big deals in C/C++/Java I was already doing namelessly in the IBM mainframe world eons ago. Byte code, I was doing 1401 emulations in the early 1970s. Polymorphism, I was writing code that supported not only different operating systems (PCP, MFT, MVS, HASP/JES, etc.) but also different releases of the same. Classes and inheritance, I have been doing SYSLIB autocalls by the Linkage Editor since ever.
    It seems that nothing is new in computing. What is new is that the distinction between mini/micro and mainframe computers has blurred.
    Ever since the PC came into existence I have peeked. First they were too slow and the Intel instruction set too horrible. Then the look and feel of Windows 3.1 was making me sick. In 1995/96 when PCs became fast enough and Windows95 sufferable, I tried Microsoft MFC but I gave up quickly. All of those files, I could never figure out which chunk of code was *.cpp, *.h, a resource or whatever.
    In March of 2000 I picked up HTML and JavaScript. I produced quite a few things that I am very proud of, some even useful but I kind of lost interest along with the DOT.COM debacle.
    In May of 2001 I tried semiseriously to pick up Java since I liked JavaScript.
    I am now in the process of writing a File Management System for the PC in my spare time. It is clear to me that the mini/macro/Unix/C/C++/C#/Java world is minor league and Mickey-Mousey.
    Do Java programmers really write programs of 200 lines at the most and stash them in folders within subfolders of subfolders ad nauseam?
    Are Java programmers so feeble minded that cannot handle 10,000+ lines of code at the time? I have a photographic memory and all that shuffling from code file to code file is too disruptive for me.
    And do Java programmers really call their variables for example JTextArea ta? Or only in Java books? My programming style is to first build tools for myself to find and cross reference whatever I am interested in. I try not to reinvent the wheel... I let you draw your own conclusions.
    How is my Java File Management System doing? I have got almost all the needed ingredients but with lots of loose ends. For my own consumption it is starting to be OK.
    I have an excellent files and folders finder also capable of searching for given strings and show the results in different useable formats. JTree Drag-and-Drop for the files. Simple, rich and HTML text editors. The menus, toolbar, and statusbar are in place and so are the routines that provide functionalities.
    Why am I complaining then? Because major roadblocks exist. Let me explain...
    a) I need a Spell Checker (badly) and I do not have the time to write one myself.
    b) I need a Files Compare better than the preliminary one I wrote for now.
    c) I need a Cross Reference more sophisticated (keywords, delimiters) than the one I wrote for now.
    d) To be able to replace Windows Explorer and the Windows desktop I need:
    1) to know how to access and process *.dat files and registry keys
    2) to know how to access and process *.lnk files (desktop icons and shortcuts)
    3) get more file properties than just the length and the lastModified date
    4) get to the file associations (opens with)
    5) convert long file names to 8.3 names especially for file names with embedded spaces
    6) make "Process process = Runtime.getRuntime().exec(my_cmd)" work all the time
    If the above was not enough, I have to get around Java shortcomings:
    1) a replace() that does not support "null" so as to delete unwanted characters
    2) the horizontal TABs mess (still a problem)
    3) the EOL (End of Line) mess (still a problem)
    4) the special characters (like inverted quotes) mess (still a problem)
    5) line numbers and line wrap mess (still a problem)
    6) and finally SPEED, I could never be as fast as native Windows.
    The above lists are not comprehensive of everything, just what I could think of as of now.
    What do I think of the Java programmers that I have encountered so far?
    1) I have asked for a way to get the Date and Time of the Java compilation (like IBM global variables &SYSDATE and &SYSTIME). The answer I got was to use a precompiler! Here for all to see is my solution:
    public void showAboutBox() {
    File f_ile = new File("Jwb.jar");
    if (!(f_ile.isFile())) { f_ile = new File("Jwb.class"); }
    //SimpleDateFormat sdf = new SimpleDateFormat("EEEE, MMMM d, yyyy (MM/dd/yy '-' yyyy.DDD) 'at' hh:mm:ss a");
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy.DDD");
    String info = "JWorkbench - 1.0 � ";
    info+= sdf.format(new java.util.Date(f_ile.lastModified()));
    info+= "\n\nA desktop file management system.\nWritten by andre nicolai.";
    JOptionPane.showMessageDialog(this, info, "About", JOptionPane.INFORMATION_MESSAGE);
    where "Jwb." is the code that has main().
    2) I have asked for examples for Drag-and-Drop of JTrees. No answers. The "core SWING advanced programming" book has an excellent example alas it did not take into account upper and lower case file names...
    For the Linux/Unix people I have a message why bother when 97% of the PCs run on Windows? I want to be a guru for the masses not a geek. Given all the Java limitations, DOS line commands, no *.EXE files, spotty built-in functionalities, need for a JVM, etc... how do we take over from the evil empire that is Microsoft unless we provide more ease of use and functionalities than them?
    Comments please.

    For one, java can be natively compiled (Excelsior JET, HotSpot, JIT, JOVE). If you want to make a program however that accesses system specific information, of course there will be some problems. They try to use the java VM to control alot of things, such as file names and the way the file system works. And give you ways to format the name of a file so that you can access it without being very specific about how the file system works. It's not a low level language you have to realize. It's very practical for some things currently. You can use it to make many applications with ease. But other things that other languages can do,
    Java can't without becoming platform dependant in some way.
    The specific project you are working is some what problematic. If you could access the specifications for the Virtual machine and make it behave how you'd like it to for this purpose, then you'd definitely have no problem. But the fact of the matter is you can't. You have to comply to the specifications Sun has set so that you can maintain pure Java.
    I'm sorry that many Java programers are ignorant to all of it's features. Java is a fairly new language, and it changes VERY often. Java hasn't yet had a chance for it's main features to become stable or standard yet. There are many parts of it that many people still use that have become depricated within the last few months, or within the last year. Alot of Java programers find it difficult to keep up with Sun. I've leared alot about the newer classes and specifications included with jdk1.4, but I far from know everything about it. And alot of the problems you're confronting frankly aren't common things yet, more people will likely explore these problems in the future, but Java is a completely new battle field. With C++ you have many years of a stable set of librarys and solutions that have been around and stayed reasonably stable for years. You can post something on a message board, and some one is bound to have used it before, or know something about it.
    Java changes very often. They are adding new features to it, and improving it, and trying to perfect it even as I type this message. And this is a great thing in my opinnion. If you have a problem with how Java is implemented, and have any solutions for them, or anything you feel would be a useful thing for them to look into, tell them! You can comment on their specifications, make suggestions, many things have been placed open for developers to tell Sun how they should improve and build on Java. They do have the ability to make native operations available to the VM if you really need them.
    If you want to look at the real "Mickey-mousey" people, who really don't do any low level programing at all, go look for the UML object orieted designers. Those people who get payed alot more then the programers do for directing and implementing a design of an object oriented program. They probably couldn't answer your questions on how certain operations are done, or how to access windows system registrys. They can get alot of people who allready know these things, and have them write different blocks of the programs using the skills and knowledge they have, and then build an enormously complex program, far more complex then any single programer would be able to understand. Perhaps you can memorize your entire program, and build enormously complex systems for yourself, but object orieted design isn't made for just you. It's created so your code will be re-usable to other people.
    You can change part of your coding, and they can implement it exactly the same as before, interface with it exactly the same as long as it meets it's previous implementation. Perhaps you can reuse your own code, but a procedural 10,000 line program is far less reusable then a program that's broken up into blocks where you can change pieces of it, and have it act exactly the same as previously. Packages are definitely the most practical way for Sun to go, as is object oriented programing design, as is the Virtual Machine. If you change your operating system, your computer, your processor, anything, all it takes is one program to make all others run. You only need ONE Virtual Machine, where as otherwise you'd need all programs to be redone, all of their funtionality would be lost. You can also upgrade ALL programs ever written for that VM, by simply upgrading the VM itself. If it uses any new optimizations, or techniques, or new HotSpot native compilation etc.. So will your program. So ALL programs ever written in Java are changed with any change to it's VM.
    Perhaps if you're intersted in producing programs only for Windows Client sided programing, then you can deny Java completely. Java can be run on any computing system, on any handheld devices, on anything that has VM. It holds a large share of the market, it's very handy, but in the end it is just a language. It's a solution to some problems. So far, it's not been very friendly to client sided development, or anything that involves graphics. This is just a problem with it's earlier implementations. They've been working on making useful graphics librarys, and GUIs to use with your programs. I've been very impressed with the speed of Swing components in jdk1.4, as well as the additions to Java2D that includes offscreen hardware accelerated graphics. Java is moving it's way into the Client sided programing market, but it's been retarded, mostly because of Microsoft. It's had problems implementing many things because Microsoft keeps such a stronghold on it's operating system, and it's reluctance to include a non proprietary VM with it's system. Windows XP will be included with no VM, which will be a big problem for non-experienced computer users to utilize. Java applications can be run on Linux, and Solaris systems just like any other program. The reason they don't on windows, is because Microsoft doesn't want them to. Perhaps they'll conform in the future, Microsoft is one big problem Java is facing.
    -Jason Thomas.

  • Design GUI in VB, put it into Java code !!!!

    Hi Guys!
    I have just developed software named Xtreme VB2J that builds java classes from the Visual Basic form files (.frm). Java does not have any built-in Integrated Development Environment (IDE) for Graphical User Interface (GUI) design; on the other hand, Visual Basic (VB) has a very nice and easy IDE for GUI design. This software is just an preliminary approach to integrate the power of EASY-GUI-Design of VB and Java to reduce wastage of a-lot-of time in software development.
    Before Running VB2J
    Since this software originally has been designed in Visual Basic, before running, your computer must have Visual Basic Runtime files or Visual Basic itself installed. You may obtain it from MyDownload section of my website or directly from: http://download.microsoft.com/download/vb60pro/install/6/Win98Me/EN-US/VBRun60.exe
    Hope you won�t be sick of Layout Managers anymore!! :)
    Try it today from the MyDownload section at: www.tanzimsaqib.tk
    Happy GUI design!! :D
    Thank you!
    -- Md. Tanzim Saqib
    [ www.tanzimsaqib.tk ]

    Obviously Zim you are not up to date on what is available for Java GUI building and what IDEs are out there. There are a host of products already available for free that far surpass anything I've used in VB (and I've developed with all flavors of VB for over 10 years now).
    Come away from the dark side and into the light.
    BTW: you don't have to use layout managers in Java either, but then just why wouldn't you want your application to resize smoothly?

  • Java not working even though it's enabled.

    so... no sites are recognizing java (well, they recognize it but think it's disabled but trust me, it's not).
    recently, i removed it then did a clean reinstall, including deleting some registry entries cuz it was stuck on saying something like "you already have this software installed on your computer. would you like to reinstall it?" and i got SICK OF IT BUT DOING IT DIDN'T DISABLE IT... did it? besides, 3rd party sites can't snoop around my registry.
    thoughts?

    1.6.0_15
    i thought i found the culprit in that i went into the java console -> advanced -> default java for browsers -> "mozilla family" was unchecked, so i checked it but no matter how many times i do that, i go back there and it's UNCHECKED EVERY TIME.
    what gives?

  • Java compiler/debugger

    i'm getting pretty sick of writing my java application notepad, saving it as "file.java" and then going to the command prompt to compile it and run it.
    is there any tools out there that can make it quicker for me?

    This search list tells it all. Just use the box in the upper ritht hand corner.
    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%2Bwhat+%2Bide&col=javaforums

  • DI Java Connector

    Hello All,
    First of all i have to say that im sick of searching abt this.......so if anyone can help it'll mean a lot to me. im trying to connect to SAP Business One from Java, in the SDK help file it says that i can connect to B1 through DI API, but how can i do it with Java???...........it says to use "SAPbobsCOM67.dll" file to connect with java....how can i do this??........and it says it includes the packages "com.sap.smb.sbo.api" , "com.sap.smb.sbo.util" , "com.sap.smb.sbo.wrapper.util" but i cant find it......i downloaded the SAP JCo 2.0 too from SAP Service Market Place....but it only has classes to connect to SAP R/3 System. What i need to do is connect to Business One with pure Java Code........using those class packages i listed above....but i don't seem to find it on the internet.....somebody pls help me on this.....because im not into VB .Net.... Thanks.

    Hi Malinda,
    You have to install the DI API and the SBO SDK to have the Java Connector (JCO)libraries and to have the JCO help file.
    In basic the API is the same as with .NET, but there are some differences.
    You can scan this forum for some samples.
    Regards
    Ad

  • Java 5 ?

    Hi,
    Just recently I downloaded the latest version of Java: J2SE 5.0.
    Well, contrary to all their promises of performance enhancement it has slowed down my J2ee server unbelievably.
    I run Orion server 2.02 on both windows and Linux platforms. Pages that used to load in a flash take abt a minute to load.
    Anybody with the same experience ?
    Jin

    People Should Be Fair Against Java,
    I'm sick og those who critisize Java (Specially JDK5.0) and Here's the proof:
    I've wrote an rtsp streaming server using the beta versions of jdk5.0 and now it's running over september-30th release of jdk5.0(The official one) with no even a small glitch.
    Please check that your software is compatabile with the jdk first then start to critisize.

  • Java newb having variable trouble

    I'm taking an intro to object oriented programming class. Our teacher barly speaks English and spends the entire class time lecturing about what object oriented means rather than going over syntax and programming tips. I am so sick of hearing about car factories =(
    We are supposed to
    "Write an applet that paints the pie chart associated with five categories whose percentages are given by variables percentage1 to percentage5 and corresponding labels are given by variables label1 to label5."
    After spending 2 days on this, this is as far as I've gotten. I'm getting 19 errors and I just don't know what to do about any of them.
    Any help would be most appreciated.
    import javax.swing.JApplet;
    import java.awt.*;
    import java.util.Scanner;
    import java.lang.Math;
    public class Money extends JApplet
       public void paint (Graphics page)
    int percentage1 = 10;
    int percentage2 = 15;
    int percentage3 = 20;
    int percentage4 = 25;
    int percentage5 = 30;
    float workingstorage = 0;
    int anglestartingpoint = 0;
    String labe11 = "Rent and Utilities";
    String label2 = "Transportation";
    String labe13 = "Food";
    String labe14 = "Educational";
    String labe15 = "Miscellaneous";
    workingstorage = percentage1 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Color.blue);
    page.fillArc(10,10,300,300,anglestartingpoint,percentage1);
    page.drawString(label1,320,10);
    anglestartingpoint = percentage1;
    workingstorage = percentage2 * 3.6;
    percentage2 = Math.round(workingstorage);
    page.setColor (Color.green);
    page.fillArc(10,10,300,300,angelstartingpoint,percentage2);
    page.drawString(label2,320,30);
    angelstartingpoint = angelstartingpoint + percentage2;
    workingstorage = percentage3 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Colpage.fillArc (10,10,300,300,angelstartingpoint,percentage3);
    page.drawString(label3,320,50);
    angelstartingpoint = angelstartingpoint + percentage3;
    workingstorage = percentage4 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Color.yellow);
    page.fillArc (10,10,300,300,angelstartingpoint,percentage4);
    page.drawString(label4,320,70);
    angelstartingpoint = angelstartingpoint + percentage4;
    workingstorage = percentage5 * 3.6;
    percentage1 = Math.round(workingstorage);
    page.setColor (Color.cyan);
    page.fillArc (10,10,300,300,angelstartingpoint,percentage5);
    page.drawString(label5,320,90);
    ----jGRASP exec: javac -g censored
    Money.java:33: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:36: cannot find symbol
    symbol : variable label1
    location: class Money
              page.drawString(label1,320,10);
    ^
    Money.java:40: possible loss of precision
    found : long
    required: int
              percentage2 = Math.round(workingstorage);
    ^
    Money.java:42: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage2);
    ^
    Money.java:44: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage2;
    ^
    Money.java:44: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage2;
    ^
    Money.java:47: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:49: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage3);
    ^
    Money.java:50: cannot find symbol
    symbol : variable label3
    location: class Money
    page.drawString(label3,320,50);
    ^
    Money.java:51: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
    angelstartingpoint = angelstartingpoint + percentage3;
    ^
    Money.java:51: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
    angelstartingpoint = angelstartingpoint + percentage3;
    ^
    Money.java:54: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:56: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage4);
    ^
    Money.java:57: cannot find symbol
    symbol : variable label4
    location: class Money
              page.drawString(label4,320,70);
    ^
    Money.java:58: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage4;
    ^
    Money.java:58: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              angelstartingpoint = angelstartingpoint + percentage4;
    ^
    Money.java:61: possible loss of precision
    found : long
    required: int
              percentage1 = Math.round(workingstorage);
    ^
    Money.java:63: cannot find symbol
    symbol : variable angelstartingpoint
    location: class Money
              page.fillArc (10,10,300,300,angelstartingpoint,percentage5);
    ^
    Money.java:64: cannot find symbol
    symbol : variable label5
    location: class Money
    page.drawString(label5,320,90);
    ^
    19 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.

    String labe11 = "Rent and Utilities"; // 'label' should end with an 'ell' not a 'one' char
    String label2 = "Transportation";
    String labe13 = "Food"; // 'label' should end with an 'ell' not a 'one' char
    String labe14 = "Educational";
    String labe15 = "Miscellaneous"; // 'label' should end with an 'ell' not a 'one' char
    workingstorage = percentage1 * 3.6;
    percentage1 = Math.round(workingstorage); // make that: '(int)Math.round(workingstorage)'
    page.setColor (Color.blue);
    page.fillArc(10,10,300,300,anglestartingpoint,percentage1);
    page.drawString(label1,320,10);
    anglestartingpoint = percentage1;
    workingstorage = percentage2 * 3.6;
    percentage2 = Math.round(workingstorage); // make that: '(int)Math.round(workingstorage)'
    page.setColor (Color.green);
    page.fillArc(10,10,300,300,angelstartingpoint,percentage2); // check the spelling of 'anglestartingpoint'etc. etc.
    kind regards,
    Jos

  • Java basic

    in java the source code is compiled and converted in to bytecodes (intermediate code). whether we can able to predict how the bytecodes will be...

    SoulTech2012 wrote:
    tsith wrote:
    SoulTech2012 wrote:
    tsith wrote:
    SoulTech2012 wrote:
    flounder wrote:
    I was reading some stories yesterday about people without a clue using computers. One woman would always save her files 5 times. Just in case the first 4 times didn't work.Wow. And I thought people that double-clicked on hyperlinks were m0rons.I might be a moron, but I will often hit "Control-S" four or five times. Makes me feel better. The frequency seems be inversely proportional to how well I understand the source.
    EDIT: I suppose [this |http://arstechnica.com/news.ars/post/20080923-study-confirms-users-are-idiots.html] might shed some light...
    Edited by: tsith on Sep 24, 2008 2:18 PMNo, this study is no good. The reason users click the OKAY button is because they are sick of the meriad of windows popups and click okay to get it out of their face. Not that it's the point, or that it matters much, but out of curiosity, how does this make the study "no good"?Because it draws an erroneous conclusion. The results don't imply that users are idiots by any stretch. Though this was the headline, this wasn't the conclusion drawn by the study.
    It only implies they didn't read the message, that is if it implies anything at all.The implication is that no amount of education is going to solve this problem, since users don't read the messages anyway.

Maybe you are looking for