首页 \ 问答 \ Ubuntu 11.04 Eclipse Java没有运行(Ubuntu 11.04 Eclipse Java not running)

Ubuntu 11.04 Eclipse Java没有运行(Ubuntu 11.04 Eclipse Java not running)

我是java编程,Ubuntu和Eclipse的新手(通常使用C#,C ++,MONO,PHP在win7 ultraedit / monodevelop / visualstudios上工作)

我在我的机器+ Eclipse上安装了java-sdk(+吨其他java包),无法通过Eclipse运行一个简单的项目。

我可以构建一个.java文件,通过使用javac在终端中执行java文件来构建类文件和java file.class来执行它。 我想使用eclipse来构建和运行我的项目,但它不起作用。

在我的eclipse运行配置中,我使用JRE java-6-sun-1.6.0.26(已安装),但它仍然无法正常工作。

当我尝试运行一个简单的项目时

public class main {

    /**
     * @param args
     */
    public static void main(String[] args)
    {
        // TODO Auto-generated method stub
        while(true){ }
    }

}

控制台中唯一的东西是:

main(1)[Java Application] /usr/lib/jvm/java-6-sun-1.6.0.26/bin/java (Sep 20, 2011 12:22:12 PM)

该路径和文件确实存在。 我不知道发生了什么事。


I am new to java programming, Ubuntu, and Eclipse (usually work on win7 ultraedit/monodevelop/visualstudios with C#, C++, MONO, PHP)

I have installed the java-sdk ( + tons of other java packages ) on my machine + Eclipse and cannot run a simple project through Eclipse.

I can build a .java file, by executing the java file in the terminal using javac to build the class file and java file.class to execute it. I want to use eclipse to build and run my project and it's not working.

In my eclipse run configurations I have it using the JRE java-6-sun-1.6.0.26 (which is installed) but it's still not working.

When I try and run a simple project

public class main {

    /**
     * @param args
     */
    public static void main(String[] args)
    {
        // TODO Auto-generated method stub
        while(true){ }
    }

}

the only thing in the console is:

main(1)[Java Application] /usr/lib/jvm/java-6-sun-1.6.0.26/bin/java (Sep 20, 2011 12:22:12 PM)

That path and file does exist. I don't know what's going on.


原文:https://stackoverflow.com/questions/7490704
更新时间:2023-07-25 20:07

最满意答案

传统模块从contao的旧扩展存储库移植到packagist。 这是contao社区联盟的特殊服务,提供通过composer安装扩展的可能性,这是packagist无法提供的。 通常,遗留的模块较旧。 如果有“普通”接触模块,请使用此模块。


The legacy modules are ported from the old extension repository of contao to a packagist. This is a special service of the contao community alliance to offer the possibility to install extension via composer that are not available at packagist. Generally, the modules from legacy are older. If there is a "normal" contao module, use this.

相关问答

更多
  • 请记住,由于历史原因,Contao 3中的模板继承非常简约,并且不能与另一个引擎即twig(我们在Contao 4中移动到它)的灵活性进行比较。 要回答您的问题:您可以在模板中定义自己的块,然后可以在子模板中覆盖这些块。 事实上,每个块都在其名称的“根”模板中“创建”然后被覆盖,以查看此操作中的表单元素模板,例如,请参阅form_row.html5的代码: // ... code omitted, refer to linked file.
    传统模块从contao的旧扩展存储库移植到packagist。 这是contao社区联盟的特殊服务,提供通过composer安装扩展的可能性,这是packagist无法提供的。 通常,遗留的模块较旧。 如果有“普通”接触模块,请使用此模块。 The legacy modules are ported from the old extension repository of contao to a packagist. This is a special service of the contao commu ...
  • Contao使用以下内容来确定当前请求是否通过SSL完成» \Environment::get('ssl') : /** * Return true if the current page was requested via an SSL connection * * @return boolean True if SSL is enabled */ protected static function ssl() { return ($_SERVER['SSL_SESSION_ID'] || ...
  • 您可以通过\Environment::get('uri')检索当前URL。 这还包括查询字符串。 一般来说,您也可以通过这种方式“使用insert标签”: \Controller::replaceInsertTags('{{…}}') ,但这绝不是必需的。 如果你想将URL传到阅读器页面(没有URL中的新闻项目),你可以使用 global $objPage $strRelativeUrl = $objPage->getFrontendUrl(); $strAbsoluteUrl = $objPage->ge ...
  • 这更像是一个MySQL问题,而不是一个Contao问题。 请参阅MySQL:按字段排序 ,例如将空单元格放在末尾 。 例如,您可以尝试以下方法: $arrOptions['order'] = "IF ($t.rankid <> '', 0, 1)"; This is more of a MySQL question, than it is a Contao question. See MySQL: Order by field, placing empty cells at end for instanc ...
  • 某些模块文件夹中的某些.htaccess文件存在问题,例如system / modules / news / assets / .htaccess 将此配置写入.htaccess文件解决了问题 Order allow,deny Allow from all Require all granted ...
  • 如果在system/modules手动安装或卸载扩展,则还需要手动删除缓存。 只需删除var/cache文件夹即可。 可选择运行cache:warmup之后的cache:warmup 。 If you install or uninstall extensions manually in system/modules you also need to delete the cache manually. Simply delete the var/cache folder. Optionally run a ...
  • 您应该通过TL_ROOT常量使用绝对路径。 例如: $pdf_file = TL_ROOT . '/' . $this->singleSRC.'[0]'; $save_to = TL_ROOT . '/files/thumbnails/'.$this->id.'.jpg'; if (!file_exists($save_to)) { $im = new Imagick($pdf_file); $im->setImageFormat("jpeg"); $im->writeImage($ ...
  • 显然,因为namespace没问题,我只需要调用正确的类名: namespace MetaModels\Attribute\TranslatedCombinedValues; //use MetaModels\Attribute\TranslatedReference; //use MetaModels\Helper\ContaoController; use MetaModelAttributeTranslatedReference; //class TranslatedCombinedValues ...
  • 看起来您已将Contao安装到子目录中并且设置基本URL不正确。 查看system/config/pathconfig.php并验证路径是否与浏览器中的路径相同(即return '';对于根目录中的安装并return '/some-dir';对于在子目录中的安装)。 您还应该使用Web开发人员工具查看它尝试加载的后端CSS的URL。 通常这已经指出基本URL中的错误。 最后,您可能在.htaccess文件中设置了一些“奇怪的”重写规则,这可能会导致这些问题。 Problem solved. The fact ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)