2013-08-26 48 views
4

我下載了最新的javaee7教程,並嘗試使用命令updatetool下載教程文件。我下面的步驟:無法使用updatetool安裝javaee7教程的教程內容

  • 下載glassfish4 zip文件並解壓它
  • 我設置$AS_JAVA變量等於$JAVA_HOMEJAVA_HOME正確地從早期配置指向有效的oracle-7-jdk。
  • 然後,我添加了父母glassfishglassfish目錄到PATH。當我做which updatetool,我得到以下:/home/frrole/glassfish4/bin/updatetool。所以我想一切都很好。我也能夠成功地與火GlassFish服務器'的asadmin啓動域

  • 現在,當我鍵入updatetool,我收到以下錯誤:

[email protected]:/usr/lib/jvm/java-7-oracle$ updatetool

The software needed for this command (updatetool) is not installed.

If you choose to install Update Tool, your system will be automatically configured to periodically check for software updates. If you would like to configure the tool to not check for updates, you can override the default behavior via the tool's Preferences facility.

When this tool interacts with package repositories, some system information such as your system's IP address and operating system type and version is sent to the repository server. For more information please see:

http://wikis.oracle.com/display/updatecenter/UsageMetricsUC2

Once installation is complete you may re-run this command.

Would you like to install Update Tool now (y/n): y

Proxy: Using system proxy settings. Install image: /home/frrole/glassfish4 Installing pkg packages. Downloading 2 packages. Downloading pkg (511 files, 6,237,937 bytes).

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007ffb5b574920, pid=22316, tid=140717514012416

JRE version: 7.0_21-b11 Java VM: Java HotSpot(TM) 64-Bit Server VM (23.21-b01 mixed mode linux-amd64 compressed oops) Problematic frame: C [libdbus-1.so.3+0x26920]GConf Error: Configuration server couldn't be contacted: D-BUS error: Message has the same reply serial as a currently-outstanding existing method call [thread 140717512959744 also had an error] dbus_watch_handle+0x1b20

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as: /home/frrole/glassfish4/hs_err_pid22316.log

If you would like to submit a bug report, please visit: http://bugreport.sun.com/bugreport/crash.jsp The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug. Aborted (core dumped)

我不知道發生了什麼。任何幫助深表感謝。


UPDATE:

現在,我發現了以下錯誤:

Would you like to install Update Tool now (y/n): y 

Exception in thread "main" java.io.IOException: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/native/release/catalog/0: 500: Internal Server Error 
    at com.sun.pkg.client.Image.checkRepositoryConnection(Image.java:1232) 
    at com.sun.pkg.client.Catalog.refresh(Catalog.java:132) 
    at com.sun.pkg.client.Image.refreshCatalogs(Image.java:1627) 
    at com.sun.pkg.client.Client.main(Client.java:109) 
Proxy: Using system proxy settings. 
Input/output error: Connection failed for URL http://pkg.oracle.com/javaeesdk/7/release/catalog/0: 502: Proxy Error 
+1

呃..你真的需要這個更新工具嗎? h教程。這似乎是浪費時間,imo。 – GGrec

+0

@GGrec我們使用更新中心從SDK中更新教程,並將其安裝在正確的位置,以便構建和運行開箱即用的示例。 –

+0

我以前沒見過那個錯誤。但請參閱[這個線程的類似情況可能的解決方法](http://forums.connectopensource.org/Glassfish-Install-Fails-td7578664.html)。簡而言之:使用Unix安裝程序安裝Java EE SDK,而不是GlassFish ZIP文件。 –

回答

1

下載並安裝Java EE 7 SDK,以獲得教程。 SDK安裝程序將安裝並配置更新中心和教程。 Glassfish的4.0 ZIP文件是不受支持的配置(但您可以添加教程使用these instructions到GlassFish 4.0獨立。

在你的情況,似乎有什麼東西不對的32位兼容性庫在64位Linux當您運行pkg

+0

請閱讀原始文章的更新。需要緊急幫助。 – VaidAbhishek

+0

在我的公司我不允許安裝軟件。因此,我無法使用更新工具甚至SDK安裝來獲取教程源代碼。感謝您做一個簡單的任務,即能夠下載一些源文件非常困難! – jeff

+1

@jeff:如果您無法安裝包含Java EE服務器的SDK,很難看到示例源代碼如何做得很好。我不再在甲骨文,但教程包的目的是運行示例,這需要安裝軟件的能力。您可以在線閱讀教程,也可以在javaeetutorial.java.net上瀏覽源代碼存儲庫。如果你安裝了Subversion,你也可以檢出版本庫。祝你好運。 –