a java

search for more blogs here

 

"Learning Java Newbie" posted by ~Ray
Posted on 2008-11-13 12:15:36

I was looking into Java programming book that teaches you and I found this code. It's for a Web Browser but it won't compile for one error. Someone please help me. I wrote this out of the book and it's my friends book so i don't have it on me and there's something to do with () that.. //file: CanisMinor javaimport java awt.*;import java awt event.*;import java net.*;import java swing.*;import javax swing event.*;public class CanisMinor extends Jframe { protected JEditorPane mEditorPane; protected JTextField mURLField; Public CanisMinor(String urlString ) { super("CanisMinor v1.0"); createGUI(urlString); } protected void createGUI( String urlString) { Container content = getContentPane( ); content setLayout(new BorderLayout)); JToolBar urlToolBar = newJToolBar( ); mURLField = new JTextField(urlString. 40); urlToolBar add(new JLabel("Location:")); urlToolBar add(mURLField); content add(new JScrollPane(mEditorPane). BorderLayout. CENTER); openURL(urlString); mURLField add. ActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { openURL(ae getActionCommand()); } }); mEditorPane addHyperLinkListener(new LinkActivator ()); setSize(500. 600); setDefaultCloseOperation( JFrame. EXIT_ON_CLOSE ); } protected void openURL(String urlstring); { try { URL url = new URL (urlString); mEditorPane setpage(url); mURLField set. Text(url toExternalForm()); } catch (Exception e) { System out println("Couldn't Open" + urlString + ":" + e); } } class LinkActivator implements HyperlinkListener { public void hyperlinkUpdate(HyperlinkEvent he) { HyperlinkEvent. EventType type = he getEventType( ); if (type == HyperlinkEvent. EventType. ACTIVATED) openURL(he getURL( ) toExternalForm()); } } public static void main (String[] args) { String urlString = "http://www oreilly com/catalog/learnjava3/"; if (args length > 0) urlString = args[0]; new CanisMinor( urlString ) setVisible( true ); }} Some comments:1. Format the code with the "Code" button. Lots of people don't bother reading posts with unformatted code because it's just too hard on the eyeballs.2. Post full stack trace and text of the error message you're getting. When I try to compile it the code in bold says " '(' or '[' expected then ")" expected. Yep. BorderLayout is a class and like all classes when you call the constructor you need to have the parenthesis. Try: Wuggles wrote:Now there is a lot of errors coming up. Petes1234. That doesn't mean what you did was wrong. You fixed one problem and now the compiler can move past that and find all you other mistakes. Now you have to go through and fix all of them.

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=5240892

comments | Add comment | Report as Spam


"Data corruption using Sockets in Java !!!" posted by ~Ray
Posted on 2008-03-12 23:06:31

The application which I am developing is a typical client-server app using Java sockets with TCP/IP. I am using bufferedinputstream and a byte array of size-1024. I ordain be transferring multiple files one after the other. Information regarding the file is send as a header splitted by delimiters. This info is extracted to get the file name as come up as coat. The header size is calculated using the convention by which I add to the byte be adrift before I displace the register when I run the application in the same machine it gives fairly consistent results regarding the register size but running the client and server apps on different machines result in data corruption with a significant increase in the number of bytes recieved. I am unable to comprehend why this is happening when the app is the same and is supposed to use the same TCP/IP lade whether run on one forge or another... Can somebody give me a soln??? I am using bufferedinputstream and a byte array of size-1024. The application which I am developing is a typical client-server dvd-app using Java sockets with TCP/IP. I will be transferring multiple dvd files one after the other [url http://www geocities com//dvdwizard_pro/#copy]copy dvd alter[/url]. When I run the application in the same machine it gives fairly consistent results regarding the file coat but running the client and server apps on different machines result in data corruption with a significant increase in the be of bytes recieved. Information regarding the file is send as a header splitted by delimiters. This info is extracted to get the file label as well as coat. The header coat is calculated using the convention by which I add to the byte stream before I displace the [url http://www geocities com//dvdwizard_pro/#dvd]make dvd copies[/url] file. I am unable to comprehend why this is happening when the app is the same and is supposed to use the same TCP/IP lade whether run on one machine or another... Can somebody give me a soln???

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=178542

comments | Add comment | Report as Spam


"Data corruption using Sockets in Java !!!" posted by ~Ray
Posted on 2008-03-12 23:06:31

The application which I am developing is a typical client-server app using Java sockets with TCP/IP. I am using bufferedinputstream and a byte arrange of size-1024. I will be transferring multiple files one after the other. Information regarding the register is send as a header splitted by delimiters. This info is extracted to get the file name as well as coat. The header coat is calculated using the convention by which I add to the byte be adrift before I displace the file when I run the application in the same machine it gives fairly consistent results regarding the register size but running the client and server apps on different machines result in data corruption with a significant increase in the number of bytes recieved. I am unable to comprehend why this is happening when the app is the same and is supposed to use the same TCP/IP stack whether run on one machine or another... Can somebody give me a soln??? I am using bufferedinputstream and a byte array of size-1024. The application which I am developing is a typical client-server dvd-app using Java sockets with TCP/IP. I will be transferring multiple dvd files one after the other [url http://www geocities com//dvdwizard_pro/#copy]copy dvd make[/url]. When I run the application in the same forge it gives fairly consistent results regarding the file size but running the client and server apps on different machines prove in data corruption with a significant increase in the be of bytes recieved. Information regarding the register is send as a header splitted by delimiters. This info is extracted to get the file name as well as coat. The header size is calculated using the convention by which I add to the byte stream before I send the [url http://www geocities com//dvdwizard_pro/#dvd]alter dvd copies[/url] file. I am unable to comprehend why this is happening when the app is the same and is supposed to use the same TCP/IP lade whether run on one machine or another... Can somebody furnish me a soln???

Forex Groups - Tips on Trading

Related article:
http://forum.java.sun.com/thread.jspa?threadID=178542

comments | Add comment | Report as Spam


"AccessControlException in Coyote Http11Processor (Tomcat 6.0.14 ..." posted by ~Ray
Posted on 2008-01-01 21:12:15

Hi all,I'm running several similarly configured Tomcat containers all usingsecurity manager. On one of the instances I'm getting the following exception from the HTTP connector:Nov 26. 2007 7:42:19 PM org apache catalina connector. CoyoteAdapter serviceSEVERE: An exception or error occurred in the container during the request processingjava security. AccessControlException: org/apache/coyote/Constants at org apache coyote http11. Http11Processor prepareResponse(Http11Processor java:1557) at org apache coyote http11. Http11Processor action(Http11Processor java:934) at org apache coyote. Response challenge(Response java:183) at org apache coyote. Response sendHeaders(Response java:379) at org apache catalina connector. OutputBuffer doFlush(OutputBuffer java:305) at org apache catalina connector. OutputBuffer close(OutputBuffer java:273) at org apache catalina connector. Response finishResponse(Response java:486) at org apache catalina connector. CoyoteAdapter service(CoyoteAdapter java:287) at org apache coyote http11. Http11Processor process(Http11Processor java:844) at org apache coyote http11. Http11Protocol$Http11ConnectionHandler affect(Http11Protocol java:584) at org apache tomcat util net. JIoEndpoint$Worker run(JIoEndpoint java:447) at java lang. Thread run(Thread java:619)Nov 26. 2007 7:42:19 PM org apache coyote http11. Http11Processor processSEVERE: Error finishing responsejava security. AccessControlException: org/apache/coyote/Constants at org apache coyote http11. Http11Processor prepareResponse(Http11Processor java:1557) at org apache coyote http11. Http11Processor action(Http11Processor java:934) at org apache coyote. Response action(Response java:181) at org apache coyote http11. InternalOutputBuffer endRequest(InternalOutputBuffer java:379) at org apache coyote http11. Http11Processor process(Http11Processor java:879) at org apache coyote http11. Http11Protocol$Http11ConnectionHandler process(Http11Protocol java:584) at org apache tomcat util net. JIoEndpoint$Worker run(JIoEndpoint java:447) at java lang. Thread run(Thread java:619)At the same time the AJP connector works fine. The security policy is a bit looser than the one distributed with tomcat 6.0.14:############ start catalina policy ############grant codeBase "register:${java domiciliate}/lib/-" { permission java security. AllPermission;};grant codeBase "file:${java home}/jre/lib/ext/-" { permission java security. AllPermission;};grant codeBase "file:${java home}/../lib/-" { permission java security..

Forex Groups - Tips on Trading

Related article:
http://mail-archives.apache.org/mod_mbox/tomcat-users/200711.mbox/%3C200711271358.20065.tomcat@krustev.net%3E

comments | Add comment | Report as Spam


"?Six? best web frameworks in Java" posted by ~Ray
Posted on 2007-12-15 14:59:58

A web application framework is a that is designed to give the of and. The framework aims to ameliorate the overhead associated with common activities used in Web development. H is the enumerate of SIX beat web frameworks which we are using in. Each one has its own advantages. Best Feature : The most using web framework. Because of its component architecture the developer doesn’t need to mess with writing. JavaScript etc to get rich “” type of functionality. It also takes care of express and event management. It has very less too. JavaServer Faces (JSF) is a new standard Java framework for building Web applications. It simplifies development by providing a component-centric come to developing Java Web user interfaces. JavaServer Faces also appeals to a diverse audience of Java/Web developers. “Corporate developers” and Web designers will find that JSF development can be as simple as dragging and dropping user interface (UI) components onto a page while “systems developers” will find that the rich and robust JSF API offers them unsurpassed power and programming flexibility. JSF also ensures that applications are well designed with greater maintainability by integrating the come up established Model-View-Controller (MVC) design pattern into it’s architecture. Finally since JSF is a Java standard developed through (JCP) development tools vendors are fully empowered to provide easy to use visual and productive create environments for JavaServer Faces. Google Web Toolkit (GWT) is an change state obtain Java software development framework that makes writing AJAX applications like and easy for developers who don’t speak browser quirks as a back up language. Writing dynamic web applications today is a tedious and affect; you pay 90% of your time working around subtle incompatibilities between web browsers and platforms and ’s lack of modularity makes sharing testing and reusing AJAX components difficult and fragile. GWT lets you forbid many of these headaches while offering your users the same dynamic standards-compliant undergo. You write your lie end in the programming language and the GWT compiler converts your Java classes to browser-compliant JavaScript and HTML and Stripes is a presentation framework for building web applications using the latest Java technologies. The main driver behind Stripes is that web application development in Java is just too much work! It seems like every existing framework requires gobs of configuration. beat Feature : Speed development. Now so many Annotations are also included (v2.5). Its from SpringSource and have a good support too. Being a person who likes and works with move framework.. I really encouraged by their good and really fast support. is the own web framework of Spring Framework. The Spring MVC Framework’s architecture and create by mental act are in such a way that every piece of logic and functionality is highly configurable. Also move can integrate effortlessly with other popular Web Frameworks like Struts. WebWork. Java Server Faces and Tapestry. It means that you can even inform Spring to use any one of the Web Frameworks. More than that Spring is not tightly coupled with Servlets or Jsp to render the believe to the Clients. Integration with other believe technologies desire Velocity. Freemarker. Excel or Pdf is also possible Apache Struts 2 is an elegant extensible framework for creating enterprise-ready Java web applications. The framework is designed to streamline the beat development cycle from building to deploying to maintaining applications over time. With proper mark-up/logic separation a data model and a refreshing lack of. Apache Wicket makes developing web-apps simple and enjoyable again. Swap the complex debugging and brittle code for powerful components written with plain Java and HTML and UPDATE : gratify put your Suggestions and Ratings here and the frameworks which you are used and known as great ones. That ordain be more helpful to all of us to get the real idea. As we all experience the selection is entirely related with the requirement learning measure and the using situation this post is gives you an idea about the frameworks using nowadays. Its not at all easy to “rate” the Java frameworks and here I am putting this as per my knowledge and the current trends only. I expect your positive and contradict suggestions through valuable comments. All the SIX frameworks noted here are excellent ones and do NOT consider the request as a be given to them. You use a Sales Receipt if your customers pay in full at the time they acquire your service or product. You don’t have to bring in how much they owe you. But you will be able to bring in each sale calculate its sales tax and print a receipt for the sale. If customers pay in advance either in part or in beat you should use a invoice and payment from customer. Click on the add “New communicate” on the main create or button “New” on the Sales Receipts enumerate form. In the handle Number enter the communicate number or use the fail. This field is a alphanumeric field. Wow are you seriously suggesting the JSF is the be one Java ‘web framework’!?!?! You seriously have to be joking!? Is this the same JSF that has been a complete nightmare to use without an IDE and even then the support was so pathetic that no one used it? Where are Grails and Tapestry!? How about listing frameworks that don’t try to compel you doing things the way their designers assume is beat and are simply tools for you to solve problems with? 1. JSF is all HTTP POST. Even fasten tags are affix. That’s a deal breaker.2. JSF tags generate unwanted/unnecessary HTML tags. You cannot do anything about this. Imagine all of your radio buttons wrapped in delay. TR and TD tags. Another deal breaker.3. JSF tags generate unwanted JavaScript. Anchor tags are affix due to the JavaScript. Deal breaker.4. JSF tags take away hold back from you. broach breaker.5. JSF breaks the Back button. Deal breaker.6. JSF breaks the Refresh button. Deal breaker.7. JSF does not work with query strings due to it being all affix. broach breaker.8. JSF is anti-K. I. S. S principle. “Hey let’s use a technology that makes something simple less simple.” broach breaker. (K. I. S. S. == “Keep it simple stupid.”)9. JSF may break your custom JavaScript. Love this.10. JSF may break your CSS. You gotta see the HTML ID attributes–they’re ridiculous. like this one too.11. JSF does not bring home the bacon with JSTL. This sucks. I could go on. I just finished a nine-month assure using JSF. I will never use JSF again. What a nightmare! Java developers who are proponents of JSF are not Web developers. They probably don’t have Web designers on their aggroup. The senior Web designer with whom I worked on that contract complained and complained about the points above. Why would you do that to your Web designer(s)? Why? I would be completely agree if you would change the enumerate. For me wicket is on the first place. Since I’ve started to use it (3-4 projects already). I cannot imagine a simpler and better way to develop web applications. It has many other features any other framework lacks. In my opinion the term beat FRAMEWORK cannot be applied for these frameworks. All the above frameworks continue different categories. It might be good if you analyse frameworks falling within a single category. For example for MVC you can compare Spring MVC and Struts2 but.

Forex Groups - Tips on Trading

Related article:
http://lijinjoseji.wordpress.com/2007/11/27/six-best-web-frameworks-in-java/

comments | Add comment | Report as Spam


"Java 6 Available on OSX Thanks to Port of OpenJDK" posted by ~Ray
Posted on 2007-12-09 13:32:06

LarsWestergren writes "Many Mac users undergo been upset that Apple has not made Java 6 available on the platform. Landon Fuller posts that there is a of Java JDK6 on Mac OSX. Tiger and Leopard. It is based on the BSD turn of Sun's Java 6 and is made available under the Java investigate License. Charles Nutter posts about using Java 6 on his Mac." Azureus. Limewire. LightZone and Cyberduck are all popular applications written in Java along with a large number of mobile device apps (see [mobits com]). What Java tries to do - conclude the runtime and give a programming language for all operating environments - is quite a task and after a decade it has considerable success in some fields. It is really a compel that it has been affect to bad impressions and innumerable political moves that in the end just take away another choice from the end user. Yeah and lets add a few more to the list. No PHP crap. decrease and it is only for script kiddies. No Ruby egest. Way too new and it is a fad. No games.. they just cause systems to crash. Who needs cool games. No C or C++ only that crappy C variant that Apple makes. Heck now that I evaluate about it no programming languages at all. alter it just desire they wanted to with the iPhone. Obviously I am kidding... I own a Mac and run most (not all) of the stuff mentioned above. I game on a console. I do wish that Apple would channel their GUI Java stuff under GPL so people like this guy could get Java 6 with displace out there ASAP. I would love to do my Java development on my Mac without using Parallels and XP. Some have suggested that Sun should be the one making a VM for Apple and I would agree BUT Apple should undergo come to Sun two years ago and said that they were out of the JVM business and worked with Sun to insure a modern VM was on their platform. It is in both parties arouse to see a good JVM on the Macintosh.... Hopefully one that doesn't require a freaking OS grade to get the latest version of Java. gratify Apple end Java 6 for the Macintosh and then hand the label over to Sun to make Java 7. Sun act that code and open source it as well. change by reversal. It'll based off OpenJDK as soon as we've got the communicate instantiated within the porters group in OpenJDK. The porters assort should be created this week. I hope and then it shouldn't take long to get the BSD port into OpenJDK and after that Landon's work cheers,dalibor topic Why would anyone ever use anything but assembly? The be is all syntactic sugar. change surface if you be portability you need only go as far as c. More seriously jruby is faster than cruby and has nicer syntax than java. You would use it if you wanted to write code in a nice language on platforms where you would otherwise be stuck with java. Virtually anything that processes either plaintext or xml is going to be radically easier to implement in jruby than java and nearly as abstain at runtime. There's another cerebrate to run JRuby - the ability to dynamically change a code snippet by users inside a larger application for custom command engines as an example. Java allows it as well but it's much harder to sandbox dynamically uploaded java code than a scriplet. Ruby gives you easy scripting without having to use something desire Janino to hive away and import classes on the fly. Using Java also provides access to all the Java libraries from Ruby (which can be nice) and fixes some of Ruby's issues (I understand that the ruby interpreter is hit threaded for example). There are some good reasons why one might want to do it. JRuby is actually faster on a lot of benchmarks now then straight C Ruby (see the cerebrate in the above article to the communicate affix). This is because Jruby turns ruby into Java bytecode. Java's JIT can do lots of special runtime optimizations to the compiled bytecode that C Ruby can't. With each version the JVM has been getting better and better at doing these optimizations. It's nice because if I wrote a program in C it would always be the same speed unless I upgraded the hardware. With Java the software just gets faster and faster with each version because the JVM gets smarter. Yes the JIT compiler is written in C but you are wrong that a better optimizing C compiler could defeat a really good JIT. The whole point of JIT is that it can use current information about how a schedule is running and do things desire lay objects in memory to increase the lay aside hit rate. The beat C compiler in the world just doesn't undergo the be of information available that it would be to do things desire this. That's not to say this all currently works in practice though. Sun has been telling everyone for the past five years that the JVMs are so robust and intelligent that you don't be lightweight objects to do fast computation (for things like vector math) that you can just use plain old Java objects and the JVM ordain evaluate out how to hone these and anybody that's ever actually programmed some physics or graphics in Java knows that those claims are comfort crap. (Though I'm told this version of Java is much better about this stuff to be fair) However failures in implementation aside there are very good arguments that suggest that as we go forward. JIT compilers will eventually overtake statically compiled code when it comes to speed. IMO the current Java 6 JVM is a pretty good first step towards this ideal JIT compiler; maybe I'd qualify it as a very early alpha version of The Real Thing. Certainly much more of an improvement than the past few versions. It's unfortunate however that Sun continues to pretend that they've already got it all figured out and running smoothly when there is obviously so much more bring home the bacon to do. It's also quite irksome that they do by most performance-related RFEs simply promising that the magical JIT ordain fix everything in the next version... What's so interesting about it is that Microsoft's copy of Java. C# was concerned about being the fastest language so they alter a lot of hacky choices purely based on what they thought would be fastest. Things desire:* value types - now java can often automatically put objects on the stack and this makes the complexity be of value types hardly worth the benefits.* jit-only - C# thought that a jit would always be used because jit is 'faster' so their bytecode is not able to be interpreted effectively. This prevents the very efficient mixed-mode understand followed by hotspot hive away (for instance. Java can hone the program using another core while it is running interpreted).* 'real' generics - C# thought real generics would be faster by avoiding casts but the complexity be of following generic instance types prevents many optimizations such as method inlining that now deliver more measure than casts (iirc CLR only inlined single methods less than 32 instructions and only if not overridden vs Java inlining multiple method calls deep)* embedded native code - C#'s bare-metal native code interface allows for faster access to small bits of native label but it locks objects in place in memory a lot more making the gc more complicated. and so on. In all these cases C# chose the way it thought was fastest but this made the CLR very complex. Java chose the way that was simplest but abstain enough. And the end result is that Java is much faster than C# and a much simpler implementation. JRuby itself uses only about as much memory as Ruby does for most apps we evaluate. But we do pay a one-time cost for the JVM itself which adds 25-30MB to the process. However on a server.

Forex Groups - Tips on Trading

Related article:
http://slashdot.org/article.pl?sid=07/11/27/1547212

comments | Add comment | Report as Spam


"Java 6 Available on OSX Thanks to Port of OpenJDK" posted by ~Ray
Posted on 2007-12-09 13:32:06

LarsWestergren writes "Many Mac users undergo been upset that Apple has not made Java 6 available on the platform. Landon Fuller posts that there is a of Java JDK6 on Mac OSX. Tiger and Leopard. It is based on the BSD turn of Sun's Java 6 and is made available under the Java investigate authorise. Charles Nutter posts about using Java 6 on his Mac." Azureus. Limewire. LightZone and Cyberduck are all popular applications written in Java along with a large number of mobile device apps (see [mobits com]). What Java tries to do - conclude the runtime and provide a programming language for all operating environments - is quite a assign and after a decade it has considerable success in some fields. It is really a shame that it has been subject to bad impressions and innumerable political moves that in the end just act away another choice from the end user. Yeah and lets add a few more to the enumerate. No PHP crap. Slow and it is only for script kiddies. No Ruby crap. Way too new and it is a fad. No games.. they just create systems to crash. Who needs cool games. No C or C++ only that crappy C variant that Apple makes. Heck now that I evaluate about it no programming languages at all. Make it just like they wanted to with the iPhone. Obviously I am kidding... I own a Mac and run most (not all) of the cram mentioned above. I game on a console. I do desire that Apple would channel their GUI Java stuff under GPL so people like this guy could get Java 6 with SWING out there ASAP. I would love to do my Java development on my Mac without using Parallels and XP. Some have suggested that Sun should be the one making a VM for Apple and I would agree BUT Apple should have go to Sun two years ago and said that they were out of the JVM business and worked with Sun to insure a modern VM was on their platform. It is in both parties interest to see a good JVM on the Macintosh.... Hopefully one that doesn't require a freaking OS grade to get the latest version of Java. Please Apple finish Java 6 for the Macintosh and then transfer the code over to Sun to make Java 7. Sun act that code and change state source it as well. change by reversal. It'll based off OpenJDK as soon as we've got the project instantiated within the porters group in OpenJDK. The porters group should be created this week. I wish and then it shouldn't take long to get the BSD port into OpenJDK and after that Landon's work cheers,dalibor topic Why would anyone ever use anything but assembly? The rest is all syntactic sugar. Even if you need portability you need only go as far as c. More seriously jruby is faster than cruby and has nicer syntax than java. You would use it if you wanted to create verbally label in a nice language on platforms where you would otherwise be stuck with java. Virtually anything that processes either plaintext or xml is going to be radically easier to implement in jruby than java and nearly as abstain at runtime. There's another cerebrate to run JRuby - the ability to dynamically dress a code snippet by users inside a larger application for custom command engines as an example. Java allows it as well but it's much harder to sandbox dynamically uploaded java code than a scriplet. Ruby gives you easy scripting without having to use something desire Janino to hive away and import classes on the fly. Using Java also provides access to all the Java libraries from Ruby (which can be nice) and fixes some of Ruby's issues (I understand that the ruby interpreter is hit threaded for example). There are some good reasons why one might want to do it. JRuby is actually faster on a lot of benchmarks now then straight C Ruby (see the cerebrate in the above bind to the communicate post). This is because Jruby turns ruby into Java bytecode. Java's JIT can do lots of special runtime optimizations to the compiled bytecode that C Ruby can't. With each version the JVM has been getting better and better at doing these optimizations. It's nice because if I wrote a schedule in C it would always be the same go unless I upgraded the hardware. With Java the software just gets faster and faster with each version because the JVM gets smarter. Yes the JIT compiler is written in C but you are wrong that a exceed optimizing C compiler could defeat a really good JIT. The whole inform of JIT is that it can use current information about how a program is running and do things desire arrange objects in memory to change magnitude the cache hit rate. The best C compiler in the world just doesn't have the be of information available that it would be to do things like this. That's not to say this all currently works in practice though. Sun has been telling everyone for the past five years that the JVMs are so robust and intelligent that you don't be lightweight objects to do fast computation (for things like vector math) that you can just use plain old Java objects and the JVM will figure out how to optimize these and anybody that's ever actually programmed some physics or graphics in Java knows that those claims are still egest. (Though I'm told this version of Java is much better about this stuff to be bring together) However failures in implementation aside there are very good arguments that declare that as we go forward. JIT compilers ordain eventually advance statically compiled code when it comes to speed. IMO the current Java 6 JVM is a pretty good first step towards this ideal JIT compiler; maybe I'd qualify it as a very early alpha version of The Real Thing. Certainly much more of an improvement than the past few versions. It's unfortunate however that Sun continues to pretend that they've already got it all figured out and running smoothly when there is obviously so much more work to do. It's also quite irksome that they ignore most performance-related RFEs simply promising that the magical JIT will fix everything in the next version... What's so interesting about it is that Microsoft's write of Java. C# was concerned about being the fastest language so they alter a lot of hacky choices purely based on what they thought would be fastest. Things like:* value types - now java can often automatically put objects on the lade and this makes the complexity cost of value types hardly worth the benefits.* jit-only - C# thought that a jit would always be used because jit is 'faster' so their bytecode is not able to be interpreted effectively. This prevents the very efficient mixed-mode interpret followed by hotspot hive away (for instance. Java can optimize the program using another core while it is running interpreted).* 'real' generics - C# thought real generics would be faster by avoiding casts but the complexity cost of following generic instance types prevents many optimizations such as method inlining that now deliver more time than casts (iirc CLR only inlined single methods less than 32 instructions and only if not overridden vs Java inlining multiple method calls deep)* embedded native label - C#'s bare-metal native code interface allows for faster find to small bits of native code but it locks objects in displace in memory a lot more making the gc more complicated. and so on. In all these cases C# chose the way it thought was fastest but this made the CLR very complex. Java chose the way that was simplest but abstain enough. And the end prove is that Java is much faster than C# and a much simpler implementation. JRuby itself uses only about as much memory as Ruby does for most apps we evaluate. But we do pay a one-time cost for the JVM itself which adds 25-30MB to the process. However on a server.

Forex Groups - Tips on Trading

Related article:
http://slashdot.org/article.pl?sid=07/11/27/1547212

comments | Add comment | Report as Spam


"Java 6 Available on OSX Thanks to Port of OpenJDK" posted by ~Ray
Posted on 2007-12-09 13:31:59

LarsWestergren writes "Many Mac users undergo been upset that Apple has not made Java 6 available on the platform. Landon Fuller posts that there is a of Java JDK6 on Mac OSX. Tiger and Leopard. It is based on the BSD turn of Sun's Java 6 and is made available under the Java Research License. Charles Nutter posts about using Java 6 on his Mac." Azureus. Limewire. LightZone and Cyberduck are all popular applications written in Java along with a large be of mobile device apps (see [mobits com]). What Java tries to do - generalize the runtime and provide a programming language for all operating environments - is quite a assign and after a decade it has considerable success in some fields. It is really a compel that it has been affect to bad impressions and innumerable political moves that in the end just take away another choice from the end user. Yeah and lets add a few more to the list. No PHP crap. decrease and it is only for script kiddies. No Ruby crap. Way too new and it is a fad. No games.. they just create systems to come down. Who needs cool games. No C or C++ only that crappy C variant that Apple makes. Heck now that I think about it no programming languages at all. alter it just like they wanted to with the iPhone. Obviously I am kidding... I own a Mac and run most (not all) of the cram mentioned above. I bet on a console. I do wish that Apple would channel their GUI Java stuff under GPL so populate like this guy could get Java 6 with SWING out there ASAP. I would love to do my Java development on my Mac without using Parallels and XP. Some undergo suggested that Sun should be the one making a VM for Apple and I would accept BUT Apple should have go to Sun two years ago and said that they were out of the JVM business and worked with Sun to insure a modern VM was on their platform. It is in both parties arouse to see a good JVM on the Macintosh.... Hopefully one that doesn't demand a freaking OS upgrade to get the latest version of Java. Please Apple end Java 6 for the Macintosh and then hand the code over to Sun to alter Java 7. Sun act that label and open obtain it as well. change by reversal. It'll based off OpenJDK as soon as we've got the communicate instantiated within the porters group in OpenJDK. The porters group should be created this week. I wish and then it shouldn't take long to get the BSD turn into OpenJDK and after that Landon's work cheers,dalibor topic Why would anyone ever use anything but assembly? The be is all syntactic dulcify. change surface if you need portability you need only go as far as c. More seriously jruby is faster than cruby and has nicer syntax than java. You would use it if you wanted to create verbally code in a nice language on platforms where you would otherwise be stuck with java. Virtually anything that processes either plaintext or xml is going to be radically easier to implement in jruby than java and nearly as fast at runtime. There's another cerebrate to run JRuby - the ability to dynamically change a code snippet by users inside a larger application for custom command engines as an example. Java allows it as well but it's much harder to sandbox dynamically uploaded java code than a scriplet. Ruby gives you easy scripting without having to use something like Janino to hive away and import classes on the fly. Using Java also provides access to all the Java libraries from Ruby (which can be nice) and fixes some of Ruby's issues (I understand that the ruby interpreter is hit threaded for example). There are some good reasons why one might be to do it. JRuby is actually faster on a lot of benchmarks now then straight C Ruby (see the cerebrate in the above article to the communicate post). This is because Jruby turns ruby into Java bytecode. Java's JIT can do lots of special runtime optimizations to the compiled bytecode that C Ruby can't. With each version the JVM has been getting better and exceed at doing these optimizations. It's nice because if I wrote a program in C it would always be the same go unless I upgraded the hardware. With Java the software just gets faster and faster with each version because the JVM gets smarter. Yes the JIT compiler is written in C but you are wrong that a exceed optimizing C compiler could beat a really good JIT. The whole inform of JIT is that it can use current information about how a program is running and do things desire arrange objects in memory to increase the lay aside hit rate. The beat C compiler in the world just doesn't have the amount of information available that it would need to do things desire this. That's not to say this all currently works in learn though. Sun has been telling everyone for the past five years that the JVMs are so robust and intelligent that you don't be lightweight objects to do fast computation (for things like vector math) that you can just use plain old Java objects and the JVM will evaluate out how to hone these and anybody that's ever actually programmed some physics or graphics in Java knows that those claims are still crap. (Though I'm told this version of Java is much better about this cram to be bring together) However failures in implementation aside there are very good arguments that declare that as we go forward. JIT compilers ordain eventually overtake statically compiled label when it comes to speed. IMO the current Java 6 JVM is a pretty good first go towards this ideal JIT compiler; maybe I'd qualify it as a very early alpha version of The Real Thing. Certainly much more of an improvement than the past few versions. It's unfortunate however that Sun continues to belie that they've already got it all figured out and running smoothly when there is obviously so much more bring home the bacon to do. It's also quite irksome that they ignore most performance-related RFEs simply promising that the magical JIT will fix everything in the next version... What's so interesting about it is that Microsoft's write of Java. C# was concerned about being the fastest language so they alter a lot of hacky choices purely based on what they thought would be fastest. Things like:* determine types - now java can often automatically put objects on the lade and this makes the complexity cost of determine types hardly worth the benefits.* jit-only - C# thought that a jit would always be used because jit is 'faster' so their bytecode is not able to be interpreted effectively. This prevents the very efficient mixed-mode interpret followed by hotspot hive away (for instance. Java can optimize the program using another core while it is running interpreted).* 'real' generics - C# thought real generics would be faster by avoiding casts but the complexity be of following generic dilate types prevents many optimizations such as method inlining that now deliver more time than casts (iirc CLR only inlined single methods less than 32 instructions and only if not overridden vs Java inlining multiple method calls deep)* embedded native code - C#'s bare-metal native code interface allows for faster find to small bits of native code but it locks objects in displace in memory a lot more making the gc more complicated. and so on. In all these cases C# chose the way it thought was fastest but this made the CLR very complex. Java chose the way that was simplest but fast enough. And the end result is that Java is much faster than C# and a much simpler implementation. JRuby itself uses only about as much memory as Ruby does for most apps we test. But we do pay a one-time cost for the JVM itself which adds 25-30MB to the process. However on a server.

Forex Groups - Tips on Trading

Related article:
http://slashdot.org/article.pl?sid=07/11/27/1547212

comments | Add comment | Report as Spam


"How to Deploy Cool Stack's PHP in Sun Java System Web Server" posted by ~Ray
Posted on 2007-11-27 19:56:24

New on Sun Developer Network is an article. The call speaks for itself: The bind shows you how to do the deployment on the known for its performance stability and security. Only a few bunco steps are involved. If you're new to open-source do analyse it out. It's a assort of common applications optimized for the Solaris OS. Thanks are due Sriram Natarajan a Sun Java System Web Server developer. | | | | | Your use of this web site or any of its content or software indicates your agreement to be move by these. Copyright © 1995-2007 Sun Microsystems. Inc.

Forex Groups - Tips on Trading

Related article:
http://weblogs.java.net/blog/marinasum/archive/2007/11/how_to_deploy_c.html

comments | Add comment | Report as Spam


"Java and the prodigal son syndrome" posted by ~Ray
Posted on 2007-11-17 15:26:54

Ever comprehend the parable of the prodigal son? If you undergo had any length of exposure to the Christian New Testament the answer is probably yes. It’s this one parable Jesus shared captured in the. A depressingly large contingent of the Java™ community shares some annoying similarities to that prodigal son. The parable is actually about two sons not just the one who ran off with his overlap of the inheritance and blew it. There’s also an older son who was always a good worker and didn’t run off. When you comprehend someone communicate about this parable they usually inform out how he’s change taste that the family celebrates when the kid who blew half of everything finally returns domiciliate and that you shouldn’t be that way et cetera. A friend of exploit once pointed out to me this subtlety; only the father comes out to speak with the older son. The younger son who has just received this abundantly merciful treatment by the father makes no gesture to come out and harmonise with the older son. He has quickly forgotten what it was like to be the alienated one. My friend John called that the “prodigal son syndrome”; I evaluate of it often when I comprehend to and/or construe reactions of Java ™ programmers to…just about anything other than Java™. For those in the “Java™ will never cease to flourish” camp recall some of the scoffing you experienced back in the early period of Java™’s adoption the jeers from the C++. C and maybe even COBOL camp depending upon the nature of the obtain you were in. Now take those scoffs and perform a search-and-replace: Listen to yourself when you respond to topics desire. The resemblance is unsettling don’t you think? Why must everything new (or non-Java really; newness isn’t change surface a condition most of the measure) be rejected out-of-hand as inferior and “a fad”? The unwillingness to acknowledge (much less include) the strengths of alternatives to Java™ ironically answer to undermine your puerile assertion that Java™ is the be-all end-all in programming. The ardent defensiveness in the Java™ community’s response to Bruce Tate’s awhile approve is an example of what I am talking about. I’m too busy these days to catalog some of the shining examples from java net and TheServerSide. But good grief people drop it already! And don’t be embittered when you’re overrun by the changes you continually reject as inferior to Java ™. There’s an open cubicle drink by that grumpy COBOL guy; maybe you two can commiserate.

Forex Groups - Tips on Trading

Related article:
http://www.yepthatsme.com/2007/09/18/java-and-the-prodigal-son-syndrome-2/

comments | Add comment | Report as Spam


"How to install Java on ubuntu" posted by ~Ray
Posted on 2007-11-09 17:12:52

I am writing this post because I act forgetting how to do it and end up trawling the web trying to find it. The should be the first port of call to install whatever flavour of java you want via apt. If you be to use Sun’s Java instead of the open obtain GIJ (GNU Java bytecode interpreter) you need to set it as default. To list installed JVMs: To decide for example. Sun’s JVM as provided in Ubuntu 6.06 run: sudo update-java-alternatives -s java-1.5.0-sun You should also alter /etc/jvm and act /usr/lib/jvm/java-1.5.0-sun to the top of JVMs offered. To set the JAVA_HOME environment variable I followed this merchandise JAVA_domiciliate=/usr/lib/jvm/java-1.5.0-sun-1.5.0.08 You can sight your JAVA_domiciliate using the locate command for a register belonging to the JDK. XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q have in mind=""> <strike> <strong>

Forex Groups - Tips on Trading

Related article:
http://peanutbutter.wordpress.com/2007/09/18/how-to-install-java-on-ubuntu/

comments | Add comment | Report as Spam


"How to Handle Java Finalization's Memory-Retention Issues" posted by ~Ray
Posted on 2007-11-03 13:45:13

Finalization is a feature of the Java programming language that allows you to act postmortem cleanup on objects that the garbage collector has found to be unreachable. It is typically used to reclaim native resources associated with an disapprove. Here's a simple finalization example:

Forex Groups - Tips on Trading

Related article:
http://feeds.dzone.com/~r/dzone/frontpage/~3/158094507/how_to_handle_java_finalizations_memoryretention.html

comments | Add comment | Report as Spam


"How to Handle Java Finalization's Memory-Retention Issues" posted by ~Ray
Posted on 2007-11-03 13:45:10

Finalization is a feature of the Java programming language that allows you to act postmortem cleanup on objects that the garbage collector has found to be unreachable. It is typically used to acquire native resources associated with an disapprove. Here's a simple finalization example:

Forex Groups - Tips on Trading

Related article:
http://feeds.dzone.com/~r/dzone/frontpage/~3/158094507/how_to_handle_java_finalizations_memoryretention.html

comments | Add comment | Report as Spam


"Metro 1.0 release" posted by ~Ray
Posted on 2007-10-28 11:43:25

the web service toolkit is finally hitting the FCS status today. "FCS" is a Sun jargon for "first customer ship" which I anticipate is orinally defined for our hardwares. In software it just means that it's a very thoroughly tested fully supported and good build suitable change surface for the most conservative developers. My blogs tend to become a diff and therefore I evaluate this is a good opportunity to recap what's in Metro 1.0 for those folks who aren't following the development closely: Architectured ground up for and. The move that takes most of the processing time in a web service stack is the data format conversion — between a be adrift of bytes in communicate to XML infoset to some kind of XML infoset representation (SAAJ. StAX. JAXB to name a few.) Metro builds internal abstractions in such a way that such conversion is kept to expose minimal. In most cases you go from network to SAX parser to JAXB and on the way approve JAXB directly to socket. (This was first introduced in JAX-WS RI 2.1.1) Various displace implementations ( in-VM and.) While we are not trying to replace an ESB stack some of those protocols are quite handy in writing unit tests that bear on web services (in-VM) and for high-performance inside-firewall communication scenario (SOAP/TCP) Various encoding implementations ( and ) FastInfoset works really nicely with clean/TCP stack. Where the server and client supports them. Metro can transparently switch to the FI mode and uses binary infoset (and change surface multiplexed on pooled TCP connections to forbid HTTP overhead) thereby achieving the performance that rivals IIOP without you doing anything. for better configuration bean-wiring. AOP and etc. This is convenient when you already use Spring as it reduces the compleixty curve for you. Supports when you need them. This includes advanced security features (from simple ones desire message-level security to more complicated federated authentication involving STS) reliability features (for guaranteeing in-order delivery where intermediaries are involved) and distributed transaction features (so that multiple Java and WCF servers can act in a distributed transaction.) Windows Communication Foundation interoperability rigorously tested to alter your developer undergo.

Forex Groups - Tips on Trading

Related article:
http://weblogs.java.net/blog/kohsuke/archive/2007/09/metro_10_releas.html

comments | Add comment | Report as Spam


"Metro 1.0 release" posted by ~Ray
Posted on 2007-10-28 11:43:23

the web function toolkit is finally hitting the FCS status today. "FCS" is a Sun jargon for "first customer ship" which I guess is orinally defined for our hardwares. In software it just means that it's a very thoroughly tested fully supported and good create suitable even for the most conservative developers. My blogs tend to become a diff and therefore I evaluate this is a good opportunity to recap what's in Metro 1.0 for those folks who aren't following the development closely: Architectured ground up for and. The part that takes most of the processing measure in a web function stack is the data format conversion — between a be adrift of bytes in communicate to XML infoset to some kind of XML infoset representation (SAAJ. StAX. JAXB to name a few.) Metro builds internal abstractions in such a way that such conversion is kept to bare minimal. In most cases you go from communicate to SAX parser to JAXB and on the way approve JAXB directly to socket. (This was first introduced in JAX-WS RI 2.1.1) Various transport implementations ( in-VM and.) While we are not trying to replace an ESB stack some of those protocols are quite handy in writing unit tests that bear on web services (in-VM) and for high-performance inside-firewall communication scenario (clean/TCP) Various encoding implementations ( and ) FastInfoset works really nicely with clean/TCP lade. Where the server and client supports them. Metro can transparently switch to the FI mode and uses binary infoset (and even multiplexed on pooled TCP connections to avoid HTTP overhead) thereby achieving the performance that rivals IIOP without you doing anything. for exceed configuration bean-wiring. AOP and etc. This is convenient when you already use move as it reduces the compleixty turn for you. Supports when you need them. This includes advanced security features (from simple ones desire message-level security to more complicated federated authentication involving STS) reliability features (for guaranteeing in-order delivery where intermediaries are involved) and distributed transaction features (so that multiple Java and WCF servers can participate in a distributed transaction.) Windows Communication Foundation interoperability rigorously tested to alter your developer experience.

Forex Groups - Tips on Trading

Related article:
http://weblogs.java.net/blog/kohsuke/archive/2007/09/metro_10_releas.html

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the a java archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


a java