Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
After many hours and many attempts, remains now your help.
Im trying to do port-forwarding to access my DB in Openshift on Neatbeans.
I've already done lots of tutorials, upgrade and downgrade versions of net-ssh, uninstall rhc and so on. I have read a lot git solutions (ssh_options[]...) and doesn't understand a damn thing.
When I'm trying do to port-forwarding I get this:
`C:\Users\andre>rhc port-forward -a leixinhos
Checking available ports ... Could not parse PKey: no start line
Usage: rhc port-forward <application>
Pass '--help' to see the full list of options
C:\Users\andre>`
leixinhos is my app name
I have everything right except this detail that prevents me from access DB on Neatbeans.
In your console output I see the following error:
Could not parse PKey: no start line
I also see you are running rhc on a Windows machine.
What version of Ruby do you have installed? I was getting that same error message when trying to use rhc with the latest version of Ruby on my Windows machine. In order to get all rhc commands to work correctly in windows I had to uninstall rhc, uninstall the latest version of Ruby, install Ruby version 1.9.3 and then reinstall rhc.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I have java 6 installed in one of my servers running application x. Now I was giving application y that is supposed to run in the same server. However, they "forgot" to tell me that application y needs java 7, not 6.
After reading a bit on the internet, I realized that it's possible to run multiple versions of java in the same windows box, but I cannot make sense of what to do with the environment variable and how it know when to use java 6 or 7. Does anyone either know what I need to do or of a website where I could find good information?
Thank you!
Do not rely on JAVA_HOME environment variables, most applications can be run using an absolute path. You don't even need to run Java setup.exe on server machine. This quarantees you don't accidentally get Java browser Plugin and version controlling is easier.
Run Java6 and Java7 setup.exe in one machine say your personal laptop
Go to c:\program files\Java\Java_xxx folder and zip it
Unzip to a server, say c:\java\Java_xxx folder, you should see Java_xxx\bin\java.exe file
Uninstall Java6 and Java7 from laptop if you don't need it
Server machine may not need JAVA_HOME envvar to mess versions up
Use JavaJRE or JavaSDK both are fine or side by side everything
Run java application using an absolute path, you may create a shortcut or .bat script to run application.
c:\java\Java_xxx\bin\java.exe -cp ./lib/myapp.jar;./classes com.package.MyAppMain param1 param2
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
I want to install JavaMail to establish an SMTP connection between two clients (and if you know other ways of establishing that connection, please let me know). I'm using Eclipse IDE to run the project that needs JavaMail.
It appears that 1.4.7 is the latest version. I followed the instructions on the code.google page, but got stuck on one step. I have to copy mail.jar to .../lib/ext, but I don't know where to find the right spot. I found this ubuntuforums thread according to which /usr/lib/jvm/java-6-sun-1.6.0.06 is where I put mail.jar. That is not the case with my Ubuntu. Instead I have a whole series of similar directories:
java-1. ... directories, java-6-openjdk, java-6-openjdk-common, java-6-openjdk-i386, and java-7-openjdk-i386.
and only some of them have /lib/ext.
My question is:
Which directory's /lib/ext should I go to and copy mail.jar?
You need to take a look which Java installation is the default one for your system. So issue a
update-alternatives --config java
Now go to that directory (the one with * shoud be the default) and put the mail.jar into lib/ext. Works for my on my Fedora:-)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Guy i developt a simple GUI application to access mySQL database program, i created a jar file, everthings works great on my computer , my application could access database greatly, but the problem is when i run this myapplication.jar on others computers, my GUI (application) showed up but can't access the database.
my questions are:
did i have to copy "C:\Program Files\MySQL\MySQL Server 6.0\data\MyDatabase\" files inside my applications folder ?
i've create a manifest file to link myapplication.jar to mysql-connector-java-5.1.17.jar , plus i put mysql-connector-java-5.1.17.jar in same folder, but it seem my application can't access the database on others computers .
The first thing you need to know is how MySQL works. It is a client and a server, which is probably local in this case.
When you bring the application to the other computer, you'll want to install a MySQL server on that machine as well and set it up with the same tables and data(via MySQL backup and restore).
I would become more acquainted with intermediate Java programming and other databases such as DB4) before creating business-critical applications.
You need to connect to sql through that computer. You can either copy your sql on that or you can point it the sql on you computer using the ip path.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I 'm use to work with Netbeans 7.2.1 on ubuntu 12.04.
Since the update on july 24, it's no more possible to create projects with it. That comes from the update of the openjdk, as mentionned on this topic.
The more convenient solution seems to use oracle-java instead of open-jdk. Hopefully, there are plenty of docs explaining how to switch from one to the other.
Nevertheless, I encounter an issue while trying to install oracle-java7 on my ubuntu.
In a terminal I type in sudo apt-get install oracle-java7-installer
Up to there, everything is going well, but then, the connection to edelivery.oracle.com fails because timeout expires
I'm behind a company proxy, so I assume the problem may come from that. But I'have no clue how to resolve that.
I have Linux Mint, I don't like relying on apt to have Oracle Java, so I did this:
Download the JDK from the Oracle website.
Unpack it in /opt/jdk_17
Create a link from /opt/jdk to /opt/jdk_17 (so every time I update the JDK I just need to update the link)
Add JAVA_HOME=/opt/jdk in /etc/environment
Update (or add) PATH to include /opt/jdk/bin
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Does anyone know the process to install java on Ubuntu?
I have my server set up with Amazon in the cloud.
I am looking to run some java servers on my server and quickly came to notice that I needed to install java.
Can someone point me in the right direction with some steps?
I have looked at some websites but in the command line when I enter sudo nano /etc/apt/source.list the file is a new file... I have read there is supposed to be an existing file. Correct?
Thanks in advance. :)
If you have terminal access, depending on the version of Java, you're looking for, it would be something like this.
sudo apt-get install openjdk-6-jre
I use the Sun/Oracle JDK. You can download the JDK .sh file. Run it and it unpacks itself. Add the bin directory to your path and you can use it. This doesn't require root access and you can install as many versions as you want this way.