I have problem to run Java Studio Enterprise 8.1 on Linux.

I have problem to run Java Studio Enterprise 8.1 on Linux..

I would like trie this tool because i would like use Uml (on netbeans i receive an error and don't function) but when i install Java Studio Enterprise it's run only the first time, after the installation, but when i close it and the i tried to restart the process is stop when there is this message:

Turning on modules ...

My system:

Ubuntu 6.10 Edgy

java sdk 1.5.0_11

1 Gb of Ram

Thanks in advance.

Bye Alessandro

Message was edited by:

alelinuxbsd

[586 byte] By [alelinuxbsda] at [2007-11-27 3:36:25]
# 1
Does it return back to the command prompt without opening the ide window at all?Can you check if the log files have any additional info? The log file can be found at <userdir>/var/log/messages.log .About userdir: http://blogs.sun.com/karthikr/entry/jse_directories
KarthikRa at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 2

It don't return back to the command prompt, it's stop during the phase of the loading of the modules before it's start.

I have tried on Windows without the problem.

Yes i can specity the log file, thank in order to have remembered it. :-)

I send the piece of log as soon as possible.

Bye Alessandro

Note:

I haven't specify the application server or the collaboration module because i don't use it.

alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 3

This is the image:

http://img220.imageshack.us/img220/3449/img1at9.th.jpg

http://img220.imageshack.us/img220/3449/img1at9.jpg

I have tried to delete and reinstall without result.

I have already tried to stop firewall but the problem persist.

On /var/log/messages i don't read nothing on sun enterprise.

Bye Alessandro :(

alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 4

I'm resolved my problem.

I must start the java studio enterprise when i am root.

If i use another account i have the problem that you can see on my image.

This is the error that i obtain:

./jstudio.sh

java.io.IOException: Permission denied

at java.io.UnixFileSystem.createFileExclusively(Native Method)

at java.io.File.createNewFile(File.java:850)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:445)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:285)

at org.netbeans.Main.execute(Main.java:155)

at org.netbeans.Main.main(Main.java:42)

java.io.IOException: Permission denied

at java.io.UnixFileSystem.createFileExclusively(Native Method)

at java.io.File.createNewFile(File.java:850)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:445)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:285)

at org.netbeans.Main.execute(Main.java:155)

at org.netbeans.Main.main(Main.java:42)

java.io.IOException: Permission denied

at java.io.UnixFileSystem.createFileExclusively(Native Method)

at java.io.File.createNewFile(File.java:850)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:445)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:285)

at org.netbeans.Main.execute(Main.java:155)

at org.netbeans.Main.main(Main.java:42)

java.io.IOException: Permission denied

at java.io.UnixFileSystem.createFileExclusively(Native Method)

at java.io.File.createNewFile(File.java:850)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:445)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:285)

at org.netbeans.Main.execute(Main.java:155)

at org.netbeans.Main.main(Main.java:42)

java.io.IOException: Permission denied

at java.io.UnixFileSystem.createFileExclusively(Native Method)

at java.io.File.createNewFile(File.java:850)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:445)

at org.netbeans.CLIHandler.initialize(CLIHandler.java:285)

at org.netbeans.Main.execute(Main.java:155)

at org.netbeans.Main.main(Main.java:42)

Cannot create log file. Logging disabled.

java.io.IOException: Cannot write to file

at org.netbeans.core.startup.TopLogging.<init>(TopLogging.java:90)

at org.netbeans.core.startup.CLIOptions.initialize(CLIOptions.java:199)

at org.netbeans.core.startup.Main.start(Main.java:288)

at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)

at java.lang.Thread.run(Thread.java:595)

[WARNING] Warning: Class-Path value ext/servlet-2.3.jar from /opt/sun/jstudio_ent81/ide/jesprofiler2/modules/com-sun-tools-jesprofiler.jar cannot be found at /opt/sun/jstudio_ent81/ide/jesprofiler2/modules/ext/servlet-2.3.jar

java.lang.NullPointerException

at org.netbeans.core.NbErrorManager.log(NbErrorManager.java:267)

at org.openide.ErrorManager$DelegatingErrorManager.log(ErrorManager.java:616)

at org.netbeans.core.startup.NbInstaller.openideModuleEnabled(NbInstaller.java:884)

at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:234)

at org.netbeans.ModuleManager.enable(ModuleManager.java:898)

at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:377)

at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:311)

at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:244)

at org.netbeans.core.startup.Main.getModuleSystem(Main.java:206)

at org.netbeans.core.startup.Main.start(Main.java:377)

at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)

at java.lang.Thread.run(Thread.java:595)

java.lang.NullPointerException

at org.netbeans.core.NbErrorManager.notify(NbErrorManager.java:227)

at org.openide.ErrorManager$DelegatingErrorManager.notify(ErrorManager.java:573)

at org.openide.ErrorManager.notify(ErrorManager.java:317)

at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:94)

at java.lang.Thread.run(Thread.java:595)

java.lang.NullPointerException

at org.netbeans.core.NbErrorManager.log(NbErrorManager.java:267)

at org.openide.ErrorManager$DelegatingErrorManager.log(ErrorManager.java:616)

at org.netbeans.core.startup.NbInstaller.openideModuleEnabled(NbInstaller.java:884)

at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:234)

at org.netbeans.ModuleManager.enable(ModuleManager.java:898)

at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:377)

at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:311)

at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:244)

at org.netbeans.core.startup.Main.getModuleSystem(Main.java:206)

at org.netbeans.core.startup.Main.start(Main.java:377)

at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:90)

at java.lang.Thread.run(Thread.java:595)

Someone can help me to solve this problem?

I would like using Java Studio Enterprise when i'm a normal account.

Thanks in advance.

Bye Alessandro

Note:

I can start Netbeans as a normal account without problem.

Message was edited by:

alelinuxbsd

alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 5

I have reinstall the ide as a normal account in a custom directory so i have resolved this problem.

But when i install netbeans as root i must be root only when i want install a module but if i want use Java Studio Enterprise and i install it as root i can't start it as normal account.

Bye Alessandro

alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 6

Glad that you have found the problem and resolved it.

In general, i think, one should be able to install as root and run as another user. JSE should create a user directory for that user. But there could be a bug that prevents this in some cases.

You may want to check the following:

- How is "netbeans_default_userdir" defined in <idedir>/etc/*conf file? Normally it should use "$HOME" variable to ensure that each user gets his or her own user directory.

- If it is defined using $HOME, does $HOME expand correctly to all the users? (If $HOME expands to a directory that the currently running user does not have permissions to, then the ide will run into permissions issues).

KarthikRa at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 7
This is the piece of code relative to your question./opt/netbeans-5.5/etc/netbeans.conf# ${HOME} will be replaced by JVM user.home system propertynetbeans_default_userdir="${HOME}/.netbeans/5.5"Bye Alessandro
alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 8

Can you try "echo $HOME" on the command line when you are logged in as a regular user? Also try the same when you are logged in as the root? If they expand to user-specific directories where the respective users have proper rights, then it seems to be a bug in the ide that a non-root user cannot run an ide installed by root...

KarthikRa at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 9
/alelinux/opt/jstudio_ent81/ide/etc/jstudio.conf# ${HOME} will be replaced by JVM user.home system propertydefault_userdir="${HOME}/.jstudio/Ent81"Bye AlessandroNote:The /opt is root while the /alelinux/opt is a normal account.
alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 10
Where is ".jstudio/Ent81" created when running /opt/jstudio_ent81/ide/bin/jstudio.sh (which is where i assume the root installation is) as the 'alelinux' user?In other words, what does 'echo $HOME' produce?
KarthikRa at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...
# 11
In this moment i haven't much free spaces on my partitions when i have a moment i will say you the output.Bye Alessandro :-)
alelinuxbsda at 2007-7-12 8:39:39 > top of Java-index,Development Tools,Java Tools...