本文介绍了“找不到主要课程。程序将退出“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行SQuirreL SQL。

我已下载并安装它,但是当我尝试运行它时,我收到以下错误消息:

I'm trying to run SQuirreL SQL.
I've downloaded it and installed it, but when I try to run it I get this error message:

我得到了这个的要点,但我不知道如何解决它。有帮助吗?

I get the gist of this, but I have not idea how to fix it. Any help?


  • 我在Windows XP专业版上。

  • 我安装了java 1.6,其他应用程序运行正常。

  • 安装运行正常。

  • 我相信我已正确遵循安装说明。

  • 要运行它,我正在调用 squirrel-sql.bat 文件。

  • I'm on Windows XP pro.
  • I have java 1.6 installed, and other apps are running OK.
  • The install ran OK.
  • I believe I've followed the installation instructions correctly.
  • To run it, I'm invoking the squirrel-sql.bat file.

此问题:从java开发人员的角度给出了一些关于此错误的背景知识。

This question: "Could not find the main class: XX. Program will exit." gives some background on this error from the point of view of a java developer.

推荐答案

您的计算机上是否安装了Java?是否正确设置了bin目录的路径(换句话说,如果从命令行输入'java',你会得到一个指令列表,或者你得到的结果是java不被认为是...... )?

Is Java installed on your computer? Is the path to its bin directory set properly (in other words if you type 'java' from the command line do you get back a list of instructions or do you get something like "java is not recognized as a .....")?

您可以尝试从命令行(来自squirrel sql目录)运行 squirrel-sql.jar ),使用:

You could try try running squirrel-sql.jar from the command line (from the squirrel sql directory), using:

java -jar squirrel-sql.jar

这篇关于“找不到主要课程。程序将退出“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 13:34