This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

How to create installer for simple java project by netbean8.0.2?

 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am studying how to create installer for java project.
For that i found netbean has builtin feature & i found tutorial also.
But when i create new java project & write Hello World. I cant find any option which show me for create 'installer'.
I read its NBI development guide.
But it difficult to understand. I will read it thoroughly for clarification of topic.
I also find Open source installer generators.
But no one give example of how to create installer for project containing simple hello world program.
I also read about Ant, Gradle, Maven etc but each topic huge. May be spending more time i will get answer myself but still i want to ask here in this forum.

Can anybody help me?
 
Rancher
Posts: 2759
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried following the tutorial step by step?
 
Mandar Khire
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i tried first tutorial to understand what exactly happens.
It works exactly as given in above link.
Then i follow another ling related to NBI development guide.
I tried to create new java free-form projects due to when i create new java project, i can not find any option 'installer' in project properties.
But in free-form projects i cant add any build script, so i cant find what its project properties.
I want to create installer for hello world program.
 
Mandar Khire
Ranch Hand
Posts: 630
Android Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I manage to generate Installer by netbean for simple Hello World program.
First i create java project, it generate program also. I just add one print line.
Then in project properties i found in Deployment properties checkbox for 'Enable Native packaging Actions in Project menu'.
Then on project if i click right click, i found 'package as' in that 'All Installer', RPM package, DEB package.
As i click 'All Installer' it work in background & in 'dist' folder i found, 'bundle' folder. In this folder there is rpm & deb file.
I run rpm file in different machine which always need rpm for install something. I can run it.
Still 1 question
1. Installer i create by 64bit machine with 64bit OS(Ubuntu 14.04 LTS 3.13.0-37-generic kernel x86_64 architecture) but i want to run that rpm on 32 bit machine with 32 bit OS (Centos 5.0, 2.6.18.1.el5.centos.PAE kernel, i686,i386 architecture)
How can i do this?
Answer 1:- I will install Latest netbean in that pc & done above test.
I done this test in centos 5.0 with 32 bit machine.
I install netbean 8.0.2.
I install Oracle java 8


Then i follow same steps.
When i click 'RPM package' in 'package as'
I got following error for which i kept verbose level as normal(setting in Tools -->Options -->java -->ant):-

When i kept verbose level to debug then huge log i got which i not post here, if needed then i will post it.
Question1. Where exactly i done wrong in 32 bit pc?

Question2:- how can i do (create installer for hello world program) by 64bit pc if it is development pc not deployment pc!
 
Mandar Khire
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please someone Help me!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!