• 周五. 1 月 3rd, 2025

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

java & linux – Java From 5gw.org

King Wang

4 月 10, 2022

xmlns=”http://www.w3.org/1999/xhtml” dir=”ltr” lang=”en”>
java & linux – Java
/**
* Bytes CSS
* Style: ‘bytes.answers’; Style ID: 18
*/
@import url(“/clientscript/vbulletin_css/style-12635a82-00018.css”);

 
 
470,370 Members | 1,622 Online

java & linux

281
100+

Hi again.
Sorry if this question is not appropriate in this forum. Need to consult you guys about running java in Linux from ssh.
I have ssh profiles in my workstation. I supposed to install one open source java program into linux environment. I’m using windows xp. ..I have transferred the program into server and now about to install it into linux.
Please give some pointers what should I do…any online tutorial link would be appreciated. Thank u.

Feb 16 ’07
#1

3 1116


(adsbygoogle = window.adsbygoogle || []).push({});

shana07

281
100+

I have these errors when I tried to compile java program from my ssh shell command. what could be the reason?

Expand|Select|Wrap|Line Numbers
  1. Mode.java:3: package test.tool does not exist
  2. import test.tool.Check; 
  3.                         ^
  4. Mode.java:15: cannot resolve symbol
  5. symbol  : variable Check 
  6. location: class Mode
  7.             ^
  8. 2 errors
  9.  

This problem’s not encountered when I run program from windows prompt- get correct results.
Perhaps someone could advise me. thanks

Feb 17 ’07
#2

rengaraj

168
100+

The problem lies in the CLASSPATH, java cannot find the test.tool package in it. From the shell type this:

echo $CLASSPATH

and see if that prints out anything. You can set the classpath like this:

export CLASSPATH = .:/var/projects

(assuming you are using bash as the shell).

If you did set the classpath, beware that you need to use a colon ( : ) as the seperator, while you would use a semicolon ( ; ) on windows.

Feb 18 ’07
#3

rengaraj

168
100+

> Need to consult you guys about running java in Linux > from ssh. Compiling isn’t the same as running. > I have ssh profiles in my workstation. I supposed to > install one open source java program into linux > environment. I’m using windows xp. ..I have > transferred the program into server and now about to > install it into linux. > Please give some pointers what should I do…any > online tutorial link would be appreciated. > > I have these errors when I tried to compile java > program from my ssh shell command. what could be the > reason? Why don’t you just compile it in windows? > [code]Mode.java:3: package test.tool does not exist
> import test.tool.Check;
> ^
> olve symbol
> symbol : variable Check
> location: class Mode
> ^
> de]
> This problem’s not encountered when I run program
> from windows prompt- get correct results.

When you compile it – not run it. Or are you running an installation program that does all of this for you?

If compilation then you did something on your windows box to correctly set the class path.

If the second then it is the installation program that is the problem – you might want to verify that app that is being installed will run at all on linux before you bother figuring out what the problem is.

Feb 18 ’07
#4


Message
 
Cancel Changes

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics


11 posts

views

Thread by Lem |
last post: by


1 post

views

Thread by jaimemartin |
last post: by


3 posts

views

Thread by Ludwig Wittgenstein |
last post: by

By using this site, you agree to our Privacy Policy and Terms of Use.


(function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’);

ga(‘create’, ‘UA-90111-7’, ‘bytes.com’);
ga(‘send’, ‘pageview’);

loadBytesTracking()

//0){location.replace(‘https://bytes.com/showthread.php?p=’+cpostno);};} }

if(typeof window.orig_onload == “function”) window.orig_onload();
}

//]]>

发表回复