Sorry, I thought you wanted to write and package that when installed would put itself into the start menu.
You seem to be saying that you are installing someone else's program.
On Windows, to get it into the start menu, create a shortcut and move that short cut into the start menu.
I don't know how to do it in ubuntu.

It should already be in the menu once installed unless the program wasn't written like that. If you don't see it you can just navigate to the path you installed it /usr/myName/Programs is where I put my stuff. You should be able to right click on on the shell script that runs the program and pin to menu. (I'm booted into Windows at work so I'm going off memory so this may not work)

Liberty has never come from the government.
Liberty has always come from the subjects of government.
The history of liberty is the history of resistance.
The history of liberty is a history of the limitation of governmental power, not the increase of it.

It's fairly easy not sure why you are having such trouble just open installation directory and double click icon as said in other post. If you are having trouble then you can install a freeware version on ms dos and can run command using program.exe.

hi bayan,
you are talking about the installation of java.
here is an approach may match your requirement;
1. make exe running file from java class
in most of time, we start java program simply by run a script like .bat file. you need a exe file to excute your java program, exe4j is such a tool to make a exe file.Java Exe Maker - exe4j
2. Inno Setup can give you the feature to make your java .exe file appear in the start menu of windows. Inno Setup

Originally Posted by bayan

Can java programs be built in a way such that when installed they appear in the start menu of windows or the applications menu of ubuntu?