• 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Peter Rooke
  • Himai Minh
Bartenders:
  • Piet Souris
  • Mikalai Zaikin

Problem with Netbeans

 
Ranch Hand
Posts: 75
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys I have witnessed a weird issue while writing a standalone java app in Netbeans, when I am running my app from within the IDE the changes which I made in my java files are not getting reflected back in the output but running the same class files from command prompt is giving the expected output.

Even the project jar file is giving the correct output when launch from command line, but the problem occurs only when launching the application from within the IDE, following is what I am doing:

Open the project ---> made changes into a java file ---->Right click on the project and select (Clean and Build)---->Right click on project and select Run---->output doesn't reflect the changes made in the java file


I am using Netbeans 7.3 and java 6 compiler and interpreter under its configuration I have enabled "Compile on Save" option.Today I started getting this issue and previously it was working fine and also I would like to add that the issue is only with a single project , other projects within the IDE responds fine when changes are made within their codes.

Any kind of help in this matter is highly appreciated.

Thanks



 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check the source (src) folder for your project and the output path.
How are you creating the jar that runs from the command prompt? By exporting as Jar(executable)?
 
Khuzema Dharwala
Ranch Hand
Posts: 75
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Amit for your reply, I am sorry I don't understood your query regarding source folder and the output path, can you please describe it further ?

Regarding jar file well after building the project I am going under path_upto_projectname/dist from command prompt and executing the jar by using the command "java -jar filename"

Thanks
 
Amit Ghorpade
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Khuzema Dharwala wrote: I don't understood your query regarding source folder and the output path, can you please describe it further ?


I meant to ask if you modified the source files or the output files folder in project settings.
Other way to ask this is do your .java files and .class files show updated timestamps when you modify and save the file?

Khuzema Dharwala wrote:Regarding jar file well after building the project I am going under path_upto_projectname/dist from command prompt and executing the jar by using the command "java -jar filename"


So your build has no problem, might be you have set an older version of the same project as the main project while executing.
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic