I am new in java. I executed a java program using eclipse. the program contain two java file. when i try to run it using terminal in Ubuntu.
two files are not linking. it shows error. i am attaching all the data.
It shows the following error
Code:
regex2string.java:83: error: cannot find symbol
str = randomstr.nextString(2000);
^
symbol: variable randomstr
location: class regex2string
1 error
Exception in thread "main" java.lang.NoClassDefFoundError: regex2string
Caused by: java.lang.ClassNotFoundException: regex2string
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: regex2string. Program will exit.
hello everyone
I'm new with Linux,,I tried to install java by using the instructions in the link below
https://www.youtube.com/watch?v=ohmZu3U9DYk
the only problem appeared in the last step "java -version" is:
neaam@neaam-desktop:~$ java -version
bash: /usr/bin/java: cannot execute binary file
can anyone help me?
I'm new to linux but I use linux a little at school and by connecting through a shell at home. Anyways, I just installed linux a little while ago and I opened a shell and tried to compile some java code by going to the directory of the code and typing "javac someCode.java" like I do at school but it says the command is not found.
I previously had installed the java runtime environment and I just went to go and try to install the java development kit but it says it was already installed.
Is there some sort of path I need to set for the shell to look for the java compiler? Thanks in advance.
Edit:
I have added aliases to my .cshrc file at school and I just found a bashrc file and csh.cshrc file in the /etc folder. Sorry, I'm really new to all of this. Anyways, I'm geussing I have to edit the bash file? Can anyone point me to a good tutorial of scripting for these files???
Hello,
I'm looking for options/tools where I can get server performance counters for Linux OS (having Java application on it). For windows based platforms, we have PerfMon that provides this data. I'm looking for a similar tool for Linux platform java apps. Could you please help me in identifying the best options to get the performance related data like Perfmon?
Thanks,
NR
HI,
When I first joined this forum I made a fairly long synopsis of who I am and what I wanted to do with Linux. I thought I posted it but now I can not find it anywhere. No doubt I messed up somehow!
I am developing a Java stand alone application that will require some server side Java Servlets to manage the marking, registration, install and deployment phases. I have a spare Windows 7 PC that I have converted to the Debian Linux system successfully...
I currently use LunarPages as my ISP and host to 3 domains. If I use them to host my Server Side processing they use Resin 3.x for the web server and my contract with them provides me with one 'MySQL' database system...
Next on my own server I will install the Resin version that LunarPages requires along with their required version of the Java EE.
I have 3 ways to eventually deploy my Java stand alone application
1. Use LunarPages to host my Server Side Servlet command...
2. Use the Google AppEngine service...
3. Use my own Linux Server for deployment purposes...
This message is an intro and does not have any specific question yet...
Perhaps someone may offer some suggestions for me or critique my objects...
Regards,
Jim Crowell
Good day all. I have 2 servers, 1 dev server running 32bit Debian Lenny with Tomcat8.0.15 and Java 1.8.0_25 and Postgres 8.3.4. The other server UAT is running a 64bit Debian Wheezy with Tomcat8.0.15 and Java 1.8.0_25 and Postgres 8.3.9.
My problem is that, the application deployed in the dev server runs properly, but when deployed on the UAT server, we get an error.
[MRS ERR 2015-05-13 16:03:33] com.bdo.clg.mrs.users.dao.UserDAOERROR: operator does not exist: integer = character varying
org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying
Another difference we noticed is in the logs.
Dev logs shows this
[MRS 2015-04-01 13:51:27] resetXPassDay.sql: UPDATE mrs_usr SET x_pass_day = '0'
WHERE login_name = 'GABS'
notice the ' ' in login_name
UAT shows this
MRS 2015-05-13 16:03:33] resetXPassDay.sql: UPDATE mrs_usr SET x_pass_day = '0' WHERE login_name = ARANTGA
no ' ' in login_name.
We already tried redeploying and reinstalling tomcat and java. Need help in pin pointing the cause of the problem.
Thanks!
I probably do something wrong with $PATH when install Java JDK. Now when I type
startx, reboot, which,... I get command not found.
When I type: echo $PATH
It shows only: /usr/local/java/bin
Hy,
I am new to linuxquestion.org, however i am mid-level linux administrator.
As per my scenario, I want to cluster python and java services in two nodes running RHEL 6.4. Till now by watching tutorial I have seen application level clustering of linux for eg: webserver, mysql database and so on. However I haven't found any with python & java clustering.
I am already familiar with windows clustering having clustered ip of the two nodes. In my scenario, we have both the options open either going with active-active or active-passive cluster. So I want to some sort of idea to achieve linux os clustering and hence obtained clustered ip.
Further any idea on how this service will float from one node to another. Further, I cannot get to the fencing mechanism in Linux. Any idea for this will be helpful to understand.
Hope to get positive respond ASAP. Thanks in advance for those who help me with this.
how to install openjdk or oracle java on debian 8 jessie to run eclipse?
hi
i want to work with ns2 and i want use java code,then i must use AGENTJ.my question is that may i install protolib for installation AGENTJ?
thanks