• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Critical issue- Running Two Jvm's

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi friends,
if there are two javas i.e. 1.3 and 6 installed on my machine and I am using Java 6 for my IDE and 1.3 as default.

Now after building an application if i distribute it to other pc's that are using java 1.3 as default and does nt have java 6 ...will my application run smoothly on that machine.

If not, then please give me some solution.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
During compilation you will have to set the "-source" and "-target" flags to "1.3". I'm not sure how to do that using Eclipse, but it's a common thing to want to do, so the documentation should cover it.
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:During compilation you will have to set the "-source" and "-target" flags to "1.3". I'm not sure how to do that using Eclipse, but it's a common thing to want to do, so the documentation should cover it.



what about netbeans do you have any idea how can i do it in netbeans
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can also run the IDE on 1.6 and compile with 1.3, at least with the IDEs I'm familiar with.

That said... 1.3 was EOL'd a good chunk of time ago; is that an actual requirement?
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:You can also run the IDE on 1.6 and compile with 1.3, at least with the IDEs I'm familiar with.

That said... 1.3 was EOL'd a good chunk of time ago; is that an actual requirement?




I didnt get this "That said... 1.3 was EOL'd a good chunk of time ago; is that an actual requirement?"


and what IDE's are you talking about can you help me please by elaborating it little bit
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EOL == End Of Life

Java 1.3 was EOL'd in 2006, when JSE 6 was GA. See here. IMO a requirement for Java 1.3 is counter-productive.

I primarily use IntelliJ and Eclipse; both allow compilation using a specific JDK, in addition to using the source and target flags. I'm only now taking a fresh look at NetBeans, but I'd be *very* surprised if it didn't allow the same thing.
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:EOL == End Of Life

Java 1.3 was EOL'd in 2006, when JSE 6 was GA. See here. IMO a requirement for Java 1.3 is counter-productive.

I primarily use IntelliJ and Eclipse; both allow compilation using a specific JDK, in addition to using the source and target flags. I'm only now taking a fresh look at NetBeans, but I'd be *very* surprised if it didn't allow the same thing.




ok thanks
 
Saloon Keeper
Posts: 24560
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the only reason that Java 1.3 held on as long as it did was because Oracle was stuck on it. However, even Oracle has long since moved on. Java 1.3 has long since ceased to be maintained either for bug or security fixes. I would be very reluctant at this point even to commit to Java 1.4.

Java's "write once/run anywhere" policty means that as long as you set your compiler options for 1.3 compatibility AND don't use libraries which require higher version JRE's, stuff will run almost forever. But note the word "almost". It's time to upgrade those user machines while backwards compatibility is still an option.
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:I think the only reason that Java 1.3 held on as long as it did was because Oracle was stuck on it. However, even Oracle has long since moved on. Java 1.3 has long since ceased to be maintained either for bug or security fixes. I would be very reluctant at this point even to commit to Java 1.4.

Java's "write once/run anywhere" policty means that as long as you set your compiler options for 1.3 compatibility AND don't use libraries which require higher version JRE's, stuff will run almost forever. But note the word "almost". It's time to upgrade those user machines while backwards compatibility is still an option.



oh thanks for replying..
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am a developer stuck between my company and client...
i cannot upgrade java there
i have to do it by any means...its like a challange for me
and client wont undastant anything actually noothing they just wnt to see the end product..and if all other things are running smooth...

please try to rescue me from this situation i am going mad only 7 days left with me to deliver the app

1>can you tell me how can i set my default netbeans envoirnment to 1.3 instead of six.

the app is not much critical only simple update edit and some report.....

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which version of NetBeans are you using?

Did you already look in the help of NetBeans?

Did you try to Google for "netbeans change jdk"? I did and found some links that looked promising in just a few seconds.
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jesper Young wrote:Which version of NetBeans are you using?

Did you already look in the help of NetBeans?

Did you try to Google for "netbeans change jdk"? I did and found some links that looked promising in just a few seconds.



i am using 6.7 (latest) i read the help but its not much of use.....but i did nt try googleing ok i will try it 2morrow and let you know ..... but if everythng needs to be googled then why does forums exist

please try to help me

thanks
 
Tim Holloway
Saloon Keeper
Posts: 24560
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sidd kol wrote:i am a developer stuck between my company and client...
i cannot upgrade java there
i have to do it by any means...its like a challange for me
and client wont undastant anything actually noothing they just wnt to see the end product..and if all other things are running smooth...



My condolences. This sort of situation is all too common these days, and it has a lot to do with why we in the profession don't get any respect. All they want is "Git 'R Dun!". Speed and price are everything and it it collapses in a steaming pile a month later, so be it. If you're lucky it gets dumped on the next poor dumb sucker. If you're not, you'll be that next poor dumb sucker.

It's a common business adage that "If it ain't Broke, Don't Fix It". That's like saying that if you have cancer and it's not killing you today, don't do anything about it. Software has ways of rotting that have nothing to do with the actual application code's obsolescence. Software is not a "finished product" like a marble statue, regardless of what people think. It's more like an automobile. And if you think that the "ain't broke" paradigm applies to automobiles, try not ever changing the oil, since the car "ain't broke".

I would highly recommend that - if for no other reason than to maintain their own credibility, you strongly urge your employers to persuade the end users to upgrade. Let them know that if anything goes wrong, there will be no vendor to call on for assistance. Java 1.3 is dead. Full Stop.

If they insist bulling through with an unsupportable solution, all I can say is "Update your CV".
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:

sidd kol wrote:i am a developer stuck between my company and client...
i cannot upgrade java there
i have to do it by any means...its like a challange for me
and client wont undastant anything actually noothing they just wnt to see the end product..and if all other things are running smooth...



My condolences. This sort of situation is all too common these days, and it has a lot to do with why we in the profession don't get any respect. All they want is "Git 'R Dun!". Speed and price are everything and it it collapses in a steaming pile a month later, so be it. If you're lucky it gets dumped on the next poor dumb sucker. If you're not, you'll be that next poor dumb sucker.

It's a common business adage that "If it ain't Broke, Don't Fix It". That's like saying that if you have cancer and it's not killing you today, don't do anything about it. Software has ways of rotting that have nothing to do with the actual application code's obsolescence. Software is not a "finished product" like a marble statue, regardless of what people think. It's more like an automobile. And if you think that the "ain't broke" paradigm applies to automobiles, try not ever changing the oil, since the car "ain't broke".

I would highly recommend that - if for no other reason than to maintain their own credibility, you strongly urge your employers to persuade the end users to upgrade. Let them know that if anything goes wrong, there will be no vendor to call on for assistance. Java 1.3 is dead. Full Stop.

If they insist bulling through with an unsupportable solution, all I can say is "Update your CV".




thanks but this was not the exact answer
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sidd kol wrote:but if everythng needs to be googled then why does forums exist


Easy questions that start with "How do I ..." or "What is ..." can often be answered within less than a minute by typing in the question into Google or another search engine. You can post such questions on a forum, but you would have to wait much longer until a person spends time to read and answer your question. Google is good for short and simple questions, forums are good for asking more complicated questions that Google can't answer. Your question is a simple "How do I ..." question that could have been answered very quickly by searching for it yourself.

It's very simple: in NetBeans, go to Tools / Java Platforms. Click the "Add Platform..." button in the bottom left of the dialog window to add your JDK 1.3 installation.

In the NetBeans Projects list (the left side of the screen), right-click your project and choose Properties. In the dialog that appears, select "JDK 1.3" as the version of Java that you want to use for the project.

Note that this is explained exactly, step by step, in the NetBeans help. Just search for "set project jdk" in NetBeans help and you will find the page "Setting the Target JDK in a Project".

If you don't have JDK 1.3 installed on your computer yet, you can download it here.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sidd kol wrote:.... but if everythng needs to be googled then why does forums exist



I am not really sure if this sounds insulting or not. Most probably you did not mean it that way.

Google will tell you what you ask for.
It will not
1) Offer alternatives.
2) Teach you related stuff.
3) Help you learn good programming practices.
4) Identify problem areas in your code.
5) Give you someone to blame in case somethings go wrong.
 
Tim Holloway
Saloon Keeper
Posts: 24560
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

sidd kol wrote:

Tim Holloway wrote:

sidd kol wrote:i am a developer stuck between my company and client...
thanks but this was not the exact answer



You're taking the approach of a slave. First, by accepting unreasonable demands. A slave follows orders, a professional is someone whose opinion in the area of their competence is worth listening to and whose advice is worth following. I realize that the attitude of management these days is that developers are interchangeable cogs and if one cog squeaks it's a cheap matter to replace it, but the truth of the matter is a lot of those replacement cogs are at best no better than the original, and often not even as good. We've been on a "race to the bottom" for some tiime now, and, like I said, we no longer have much credibility as a profession. People expect software to fail now. It used to be the exception. I heard on the radio this morning that about 1 million people got dropped out of a system in the local state government this past weekend.

This has got to stop. We, if we expect respect, have to stop acting like slaves and push back. Refuse to just "do the job" and insist that the job be done well. Show some pride and not just grind out code.

And secondly, show enough initiative to read the product documentation, not just pop onto a forum and expect to get the solution handed to you for free. Slaves have no initiative. Professionals do. If you show a reason to be respected, you'll get more respect.

It was good to seek advice from us. Advice is what we're here for. Professional advice. However, once advice has been offered, you need to consider following that advice and to understand that "a word to the wise suffices". We don't get paid for this. We're not asking you to do things we don't do ourselves all the time. We're here to help, but in turn, you must help yourself.
 
sidd kol
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:

sidd kol wrote:

Tim Holloway wrote:

sidd kol wrote:i am a developer stuck between my company and client...
thanks but this was not the exact answer



You're taking the approach of a slave. First, by accepting unreasonable demands. A slave follows orders, a professional is someone whose opinion in the area of their competence is worth listening to and whose advice is worth following. I realize that the attitude of management these days is that developers are interchangeable cogs and if one cog squeaks it's a cheap matter to replace it, but the truth of the matter is a lot of those replacement cogs are at best no better than the original, and often not even as good. We've been on a "race to the bottom" for some tiime now, and, like I said, we no longer have much credibility as a profession. People expect software to fail now. It used to be the exception. I heard on the radio this morning that about 1 million people got dropped out of a system in the local state government this past weekend.

This has got to stop. We, if we expect respect, have to stop acting like slaves and push back. Refuse to just "do the job" and insist that the job be done well. Show some pride and not just grind out code.

And secondly, show enough initiative to read the product documentation, not just pop onto a forum and expect to get the solution handed to you for free. Slaves have no initiative. Professionals do. If you show a reason to be respected, you'll get more respect.

It was good to seek advice from us. Advice is what we're here for. Professional advice. However, once advice has been offered, you need to consider following that advice and to understand that "a word to the wise suffices". We don't get paid for this. We're not asking you to do things we don't do ourselves all the time. We're here to help, but in turn, you must help yourself.


this sounds nice and is fact tooo but its not practical....may be you are saying this because you are nt aware of the total situation here around me and its obviousely not your fault......but there is something ...like i asked this question here because everyone who are comin here to discuss the something are working on the same platform and its nt possible to read the whole of documentation and i expected an quick answer so i posted it here......everyone on this earth knows that nothing comes for free....that is why we are discussing here..in sence we are helping each other,,,may be some day i will be posting answers here some day.....as i have done in past on other forums and on topics that i know deeply.....and in RAD forums come handy...and as much as i knw nothing is impossible....nyways thanks for all the help .... and i promise i will post the exact answer to this question here after some days when i get it done....you must have heard "The history of the world is the history of a few men who had faith in themselves.".....and dont take it wrong it dosent mean that i am going to create a history or something like that but i belive in this theory and i wnt to get the work done for me beacuse i will learn something out of it...it will be done faster if kind people like you have some help for me...andi you dont have a solutin it will take some time but i will make it sure that i go till i reach the end point ...thanks bro
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic