RHEL : JDK 7u15 installation error - java

I am getting following error while installing the JDK 7u15 version on Red Hat Enterprise Linux box.
I am not able figure out what to do with it? I mean what is impact on running my programs?
What are these pack files?
charsets.pack
deploy.pack
javaws.pack
jsse.pack
localedata.pack
plugin.pack
rt.pack
I have followed the steps given in oracle site:
http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html
RHEL version: 6
Here is the exact message from putty:
bash-4.1$ sudo rpm -ivh jdk-7u15-linux-i586.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/rt.pack
jsse.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/jsse.pack
charsets.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/charsets.pack
tools.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/lib/tools.pack
localedata.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/ext/localedata.pack
plugin.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/plugin.pack
javaws.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/javaws.pack
deploy.jar...
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/deploy.pack

Recently I have got the same problem on Fedora. After researching on the Internet, it has been discussed somewhere (I will add the reference later if I can find it again) that these are normal. It appears that the installer is trying the open *.pack file when they are already gone because they are renamed to *.jar. For some reasons, they are not trying to fix this problem in any newer installer.
Here are the references:
http://forums.fedoraforum.org/showthread.php?t=283237
http://wiki.rosalab.ru/en/index.php/Howto_install_proprietary_Java_from_Oracle
Errors when installing jdk 1.7 in linux
http://forums.fedoraforum.org/showthread.php?t=285076

Related

Cannot open sever.jar file

So I was trying to make a 1.17.1 minecraft server on my mac. I couldn't open my 1.17.1_server.jar with Java 8 so I download Java 16.0.2.
Unfortunately, everytime I was opening the 1.17.1_server.jar file, I got
"The Java JAR file "1.17._server.jar" could not be launched." .
I first thought that it was because the file was launch by Java 8 instead of 16.
So I went into the terminal and run :<path to java> -jar 1.17.1_server.jar
I then got this : Error: Unable to access jarfile 1.17.1_server.jar
Finally i tried to put the path of the jar file in the command...
So I've run : path to java -jar path to server
and got this :
[main/ERROR]: Failed to load properties from file: server.properties
[15:57:35] [main/WARN]: Failed to load eula.txt
[15:57:35] [main/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
So why I have to agreed Eula if i've never launched it ? Does it think that he already been launched ?
As stated in the error message
[15:57:35] [main/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
You have to open the file and check yes
Okay find the solution: my eula and server properties file were in my user folder dk why (never moved them so...)

Bazel build error "No such file or directory"

I have Ubuntu 16.04. I downloaded and installed bazel according to the official bazel guide and after that I downloaded the first tutorial for building a Java project but it didn't work. I got this exception:
unexpected pipe read status: (error: 2): No such file or directory
Server presumed dead. Now printing '/home/jingw222/.cache/bazel/_bazel_jingw222/ada033fd33c06190d78b77ab4907f1d0/server/jvm.out':
java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:141)
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:130)
at com.google.devtools.build.lib.skyframe.SkyframeExecutor.skyFunctions(SkyframeExecutor.java:348)
at com.google.devtools.build.lib.skyframe.SkyframeExecutor.init(SkyframeExecutor.java:586)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.init(SequencedSkyframeExecutor.java:252)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.create(SequencedSkyframeExecutor.java:211)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutor.create(SequencedSkyframeExecutor.java:162)
at com.google.devtools.build.lib.skyframe.SequencedSkyframeExecutorFactory.create(SequencedSkyframeExecutorFactory.java:48)
at com.google.devtools.build.lib.runtime.WorkspaceBuilder.build(WorkspaceBuilder.java:81)
at com.google.devtools.build.lib.runtime.BlazeRuntime.initWorkspace(BlazeRuntime.java:204)
at com.google.devtools.build.lib.runtime.BlazeRuntime.newRuntime(BlazeRuntime.java:1023)
at com.google.devtools.build.lib.runtime.BlazeRuntime.createBlazeRPCServer(BlazeRuntime.java:850)
at com.google.devtools.build.lib.runtime.BlazeRuntime.serverMain(BlazeRuntime.java:789)
at com.google.devtools.build.lib.runtime.BlazeRuntime.main(BlazeRuntime.java:570)
at com.google.devtools.build.lib.bazel.BazelMain.main(BazelMain.java:56)
Caused by: java.lang.ClassCastException: com.ibm.lang.management.UnixExtendedOperatingSystem incompatible with com.sun.management.OperatingSystemMXBean
at com.google.devtools.build.lib.util.ResourceUsage.<clinit>(ResourceUsage.java:45)
... 13 more
What can caouse the problem?
I found this issue, and finally I realized, that I need to download the jdk manually. So I used this command:
sudo apt-get install openjdk-8-jdk
After that I built it again, and it worked well.

Playscape Publishing Kit failing with Error unknown during apply patch process

Running Unity 4.5.4f1 and Playscape SDK version 1.14, building for android target, I am getting an Error unknown during the apply patch process in Unity. When running the executed command in CMD, I get the following error:
Error: Could not find or load main class com.googlecode.dex2jar.tools.Dex2jarCmd
The command input I provide (taken from the SDK logger) is the following:
"C:\Program Files (x86)\Java\jdk1.8.0_51/bin/java.exe" -clas
spath Assets/Plugins/Playscape/Editor/ThirdParty/dex2jar\lib/asm-all-3.3.1.jar;A
ssets/Plugins/Playscape/Editor/ThirdParty/dex2jar\lib/commons-lite-1.15.jar;Asse
ts/Plugins/Playscape/Editor/ThirdParty/dex2jar\lib/dex-ir-1.12.jar;Assets/Plugin
s/Playscape/Editor/ThirdParty/dex2jar\lib/dex-reader-1.15.jar;Assets/Plugins/Pla
yscape/Editor/ThirdParty/dex2jar\lib/dex-tools-0.0.9.15.jar;Assets/Plugins/Plays
cape/Editor/ThirdParty/dex2jar\lib/dex-translator-0.0.9.15.jar;Assets/Plugins/Pl
ayscape/Editor/ThirdParty/dex2jar\lib/dx.jar;Assets/Plugins/Playscape/Editor/Thi
rdParty/dex2jar\lib/jar-rename-1.6.jar;Assets/Plugins/Playscape/Editor/ThirdPart
y/dex2jar\lib/asmin-p2.5.jar -Xms1024m -Xms1024m com.googlecode.dex2jar.tools.De
x2jarCmd -f -o "C:\Users\THREEG~1\AppData\Local\Temp\vbqpzsn0.9r6.jar" "C:\Users
\THREEG~1\AppData\Local\Temp\jhcbrbrz.ocm./classes.dex"
I have checked the folder structure inside the project and dex2jar seems to be present. We did not see this issue before updating.
How can I resolve this?
I found it myself. This is most likely due to a spelling error in AndroidApkCreator.cs, row 39, where "lib/asmin-p2.5.jar" instead should read "lib/jasmin-p2.5.jar", judging by the file name inside the lib folder. This does not seem to completely remove the issue, however, as the CMD prompt still throws the following Error:
Could not find or load main class com.googlecode.dex2jar.tools.Dex2JarCmd

Error installing pydev [duplicate]

This question already has answers here:
Problems downloading artifact - error reading signed content
(2 answers)
Closed 8 years ago.
I have eclipse 3.7 installed and I'd like to install pydev from pydev.org/updates from help>install new software but I keep getting errors:
An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.python.pydev,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6253600369144568995.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6253600369144568995.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.analysis,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile571100381995937794.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile571100381995937794.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.codecompletion,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7939549393376543178.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7939549393376543178.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.debug,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7919082619115038876.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7919082619115038876.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.fastparser,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile5333565376705188952.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile5333565376705188952.jar
Problems downloading artifact: osgi.bundle,com.python.pydev.refactoring,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile5676238210588307882.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile5676238210588307882.jar
Problems downloading artifact: osgi.bundle,org.python.pydev,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile4716582641827617890.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile4716582641827617890.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.ast,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile853205344535319189.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile853205344535319189.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.core,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6242038948772764722.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6242038948772764722.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.customizations,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6200571740568092132.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6200571740568092132.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.debug,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7348469738343374780.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7348469738343374780.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.django,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3577420456810055714.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3577420456810055714.jar
Problems downloading artifact: org.eclipse.update.feature,org.python.pydev.feature,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3341085924253320715.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3341085924253320715.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.help,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3845056374345623111.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3845056374345623111.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.jython,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile6508149376440133601.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile6508149376440133601.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.parser,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile2272439666869250515.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile2272439666869250515.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.refactoring,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile3096660355605659228.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile3096660355605659228.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_core,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile5752308523522565836.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile5752308523522565836.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_interactive_console,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile7961459825015698127.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile7961459825015698127.jar
Problems downloading artifact: osgi.bundle,org.python.pydev.shared_ui,3.0.0.201311051910.
Error reading signed content:/tmp/signatureFile448758150516384194.jar
An error occurred while processing the signatures for the file: /tmp/signatureFile448758150516384194.jar
How can I fix this?
Not sure if this will fix the problem, but one workaround solution may be to uncheck "Show only the latest versions of available software" on the install dialog box where you choose the version of PyDev to install.
Alternatively, you could manually install PyDev by downloading the zip file and extracting it to the eclipse/dropins folder.
You can find the latest version of PyDev here:
http://sourceforge.net/projects/pydev/files/
The second solution is as noted in the PyDev manual:
http://pydev.org/manual_101_install.html
Hopefully one of these approaches fixes the issue. :)
I was having problems with installing all versions of PyDev from 3.0 onwards while using Ubuntu, even when using the zip file supplied on the PyDev website for a while, but here is the solution to get it working.
Up to date versions of Eclipse may complete the PyDev installation using Eclipse's install feature with "http://pydev.org/updates", but even though installed PyDev will do nothing. (You can skip to step 2 if you are in this situation) Older versions of Eclipse will show the above error. However, both old (at least going as far back as the version on the Ubuntu Software Center, 3.7.2) and new versions can use PyDev 3.0+ perfectly if you follow these instructions.
Step 1:
Go to the (PyDev website) and download the zip file for Pydev 3.0 or higher.
Navigate to ~/.eclipse/org.eclipse.platform_VERSION/ (in Ubuntu, not sure where the Eclipse folder would be in Windows) and create a folder called "dropins". Copy the contents of the downloaded zip file to this new folder.
Step 2:
PyDev will now be installed, but wont do anything until you download Java 7, so you need to type the following commands into a terminal:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java7-set-default
If you are using Windows you should probably be able to just download and install Java 7 from the Oracle website and stop here.
Step 3:
Java 7 will now be installed, but it is possible that Eclipse will no longer start. If this is the case you need to type the following into the terminal on 32-bit systems:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86/
Or the following on 64-bit systems:
ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/
PyDev 3.0+ should now be working fully in Eclipse!
The pydev site states as requirement that the version of eclipse should be 3.8/4.2 (JUNO) and upwards.
I ran into the same problem, updated eclipse and the problem vanished.
A more descriptive report from the installer would have been nicer.

xmlvm my android to iphone project

I have a working android app, I now have a new mac for the sole purpose of developing the same app on iphone. I have installed xmlvm on the mac and I moved by android app into the workspace and when I try and cross compile I get an error - could not find input resource: bin. Anybody here using xmlvm to cross compile android apps? Can you help with this error? There is a bin folder in my Test_One project.
pwd /Users/iosdev/Documents/workspace/xmlvm/Test_One
/Users/iosdev
iOS-Mac-mini:~ iosdev$ java -Xmx700m -jar /Users/iosdev/Documents/workspace/xmlvm/dist/xmlvm.jar --in=bin --out=out --target=iphonec --app-name=testone
[03/11/12 10:00:19.281] ERROR: InputProcessFactory: Could not find input resource: bin
[03/11/12 10:00:19.290] ERROR: XmlvmProcessor: No inputs to process.
[03/11/12 10:00:19.290] ERROR: Something went wrong during processing.
iOS-Mac-mini:~ iosdev$
Try with in=bin/, or with --in=bin/*. The problem is simple: It can't find the "bin"-resource, I guess it thinks of it as a file and not a directory.

Categories