编译和运行在Unix中爪哇(从Windows推出) [英] Compiling and Running java in Unix ( coming from Windows )

查看:99
本文介绍了编译和运行在Unix中爪哇(从Windows推出)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,这是工作的窗口。我的Java应用程序正在运行和正常工作

Ok, this is working on windows. My Java app is running and functioning normally

javac -classpath .;ojdbc14.jar -g foo.java
java  -classpath .;ojdbc14.jar  foo

然而,当我在Unix同样的事情,我得到这个错误:
    ojdbc14.jar的:没有找到

However, when I do the same thing on Unix I get this error: ojdbc14.jar: not found

我是什么做错了吗?我所知道的;告诉我外壳,ojdbc14.jar的是一个新的命令,但我不知道如何解决这个问题。

What am I doing wrong? I know the ";" is telling my shell that ojdbc14.jar is a new command, but I'm not sure how to fix this.

推荐答案

使用冒号(:),而不是一个分号(;)

Use a colon (":") instead of a semicolon (";").

请参阅设置类路径(Solaris和Linux) VS 设置类路径(Windows)中

这篇关于编译和运行在Unix中爪哇(从Windows推出)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆