Aller au contenu

Java update 4 pour mac os x 10.5 et netbeans 6.51


ungars

Messages recommandés

Bonjour,

cette mise à jour rend inopérant dans Netbeans 6.51 la création de nouveaux projets web, où l'ajout de nouveaux fichiers dans un projet existant : j'ai ouvert un incident chez Apple et chez Sun:

Summary: after installing of the Java update number 4 for MAC OS X 10.5 (FRENCH),

NETBEANS IDE 6.51 don't work...

Steps to Reproduce:

BUG 1 : Impossible to create a new "Java Web / Web application" project

BUG 2 : For an existing project, you can't add a new file (HTML or JSP for example).

Expected Results:

BUG 1 : to terminate normally as before the update 4

BUG 2 : to add the file chosen.

Actual Results:

BUG1 :

The progress bar of the dialog box hang at "75%". You can close this dialog box.

The new project is missing in the "project" list, but everything (?) is created and you can open the new project with the "file / open project" menu. Then it will appears in the list of the projects.

BUG 2:

For an existing project, if you add a new file (HTML or JSP for example),

when you click on the "finish" button of the dialog box, all the buttons are disabled, nothing is added in the "web pages" folder. You can close the dialog box.

Regression: it is impossible to add the previous version of java ?

Notes:

The versions are in /system/library/frameworks/javaVM.frameworks :

8 lrwxr-xr-x 1 root wheel 27 16 jui 07:22 Classes@ -> Versions/CurrentJDK/Classes

8 lrwxr-xr-x 1 root wheel 24 16 jui 07:22 CodeResources@ -> Versions/A/CodeResources

8 lrwxr-xr-x 1 root wheel 28 16 jui 07:22 Commands@ -> Versions/CurrentJDK/Commands

8 lrwxr-xr-x 1 root wheel 27 16 jui 07:22 Frameworks@ -> Versions/Current/Frameworks

8 lrwxr-xr-x 1 root wheel 24 16 jui 07:22 Headers@ -> Versions/Current/Headers

8 lrwxr-xr-x 1 root wheel 24 16 jui 07:22 Home@ -> Versions/CurrentJDK/Home

8 lrwxr-xr-x 1 root wheel 23 16 jui 07:22 JavaVM@ -> Versions/Current/JavaVM

8 lrwxr-xr-x 1 root wheel 29 16 jui 07:22 Libraries@ -> Versions/CurrentJDK/Libraries

8 lrwxr-xr-x 1 root wheel 26 16 jui 07:22 Resources@ -> Versions/Current/Resources

0 drwxr-xr-x 14 root wheel 476 16 jui 07:22 Versions/

Et dans Versions :

8 lrwxr-xr-x 1 root wheel 5 16 jui 07:22 1.3@ -> 1.3.1

0 drwxr-xr-x 3 root wheel 102 29 sep 2007 1.3.1/

8 lrwxr-xr-x 1 root wheel 5 16 jui 07:22 1.4@ -> 1.4.2

8 lrwxr-xr-x 1 root wheel 3 28 jui 2008 1.4.1@ -> 1.4

0 drwxr-xr-x 8 root wheel 272 15 nov 2007 1.4.2/

8 lrwxr-xr-x 1 root wheel 5 16 jui 07:22 1.5@ -> 1.5.0

0 drwxr-xr-x 8 root wheel 272 15 nov 2007 1.5.0/

8 lrwxr-xr-x 1 root wheel 5 16 jui 07:22 1.6@ -> 1.6.0

0 drwxr-xr-x 8 root wheel 272 28 jui 2008 1.6.0/

0 drwxr-xr-x 8 root wheel 272 16 jui 07:22 A/

8 lrwxr-xr-x 1 root wheel 1 16 jui 07:22 Current@ -> A

8 lrwxr-xr-x 1 root wheel 3 16 jui 07:22 CurrentJDK@ -> 1.5

Some peoples have problems like this with ECLIPSE.

Thanks you a lot for your help.

Vous remarquerez la nouvelle version "A" de la java VM...

Lien vers le commentaire
Partager sur d’autres sites

Le coup de la réinstall ca le fait (et puis ca évite d'avoir à trop réfléchir sur ce qu'il faut supprimer ou pas :mad2:) NetBeans 6.7 tourne au poil :transpi:

Il faut faire (à adapter selon la version de NetBeans):

1) copier "scripting-api.jar" depuis "NetBeans 6.5.app/Contents/Resources/NetBeans/platform9/modules/ext/" vers

"/System/Library/Java/Extensions"

2) le déploiement ous TOMCAT foire : on peut utiliser GlassFish, installé avec NetBeans, mais sinon on a des erreurs comme ça :

java.io.FileNotFoundException: /var/folders/WM/WMIXWYDQFAypvkk-d8SYs TI/-Tmp-/context9188527961684677993.xml (No such file or directory)

at java.io.FileInputStream.open(Native Method)

at java.io.FileInputStream.<init>(FileInputStream.java:106)

at org.apache.catalina.manager.ManagerServlet.copyInternal(ManagerServlet.java:1642

)

at org.apache.catalina.manager.ManagerServlet.copy(ManagerServlet.java:1603)

at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:811)

at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:350)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt

erChain.ja

va:290)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.

java:206)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2

33)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1

91)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav

a:525)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109

)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

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

Le nom donné est faux :

Code

/var/folders/WM/WMIXWYDQFAypvkk-d8SYs TI/-Tmp-/context9188527961684677993.xml

n'existe pas en effet, son nom est :

Code

/var/folders/WM/WMIXWYDQFAypvkk-d8SYs++++TI/-Tmp-/context9188527961684677993.xml

La réponse ici : Apple a encore fait des siennes sans prévenir

http://forums.netbeans.org/post-38670.html

I've had the same problem too and fixed it by adding -J-Djava.io.tmpdir=/tmp to the netbeans_default_options line in the

netbeans.conf file.

This rolls back a change in the new OS X Java update which no longer

uses /tmp by default, but a random directory under /var/folders/ to

help security, but is anything but random on either my G5 or MBP, so

will be filing a bug report.

ATTENTION : ce foutu fichier est dans "/Applications/NetBeans/NetBeans 6.7RC2.app/Contents/Ressources/NetBeans/etc" (ouf !)

En effet, NetBeans 6.7RC2.app est un package qui contient plusieurs milliers de fichiers...On y accède par un clique droit + "afficher le contenu du paquet".

"/Applications/NetBeans/NetBeans 6.7 RC2.app/Contents/Resources/NetBeans/etc/netbeans.conf" :

# ${HOME} will be replaced by JVM user.home system property

netbeans_default_userdir="${HOME}/.netbeans/6.7rc2"

# Options used by NetBeans launcher by default, can be overridden by explicit

# command line switches:

netbeans_default_options="-J-Dorg.glassfish.v3.installRoot=/Applications/NetBeans/sges-v3-prelude -J-Dcom.sun.aas.installRoot=/Applications/NetBeans/SUNWappserver -J-Dcom.sun.mysql.startcommand=/usr/local/mysql/support-files/mysql-admin.server -J-Dcom.sun.mysql.stopcommand=/usr/local/mysql/support-files/mysql-admin.server -J-Dcom.sun.mysql.startargs=start -J-Dcom.sun.mysql.stopargs=stop -J-Dcom.sun.mysql.port=3306 -J-Dorg.glassfish.v3.installRoot=/Applications/NetBeans/sges-v3-prelude -J-Dcom.sun.aas.installRoot=/Applications/NetBeans/SUNWappserver -J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true -J-Djava.io.tmpdir=/tmp"

# Note that a default -Xmx is selected for you automatically.

# You can find this value in var/log/messages.log file in your userdir.

# The automatically selected value can be overridden by specifying -J-Xmx here

# or on the command line.

# If you specify the heap size (-Xmx) explicitely, you may also want to enable

# Concurrent Mark & Sweep garbage collector. In such case add the following

# options to the netbeans_default_options:

# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled

# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome <dir>:

#netbeans_jdkhome="/path/to/jdk"

# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):

#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

# If you have some problems with detect of proxy settings, you may want to enable

# detect the proxy settings provided by JDK5 or higher.

# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...