找不到Java数据库路径 [英] Java database path not found

查看:161
本文介绍了找不到Java数据库路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改eclipse java neon的文件路径以访问我的编程课程所需的数据库,但我不知道如何在Windows 10上做到这一点(这本书仅指导我们如何做在第8和7窗口中).

I'm attempting to change the file path of eclipse java neon to access a database I need for my programming class and I cant figure out how to do it for windows 10 (the book only instructs us on on how to do it in window 8 and 7).

我给你一个简短的版本,只是说这本书告诉我要么编辑当前的classpath看起来像.; C:\Program Files\Java\jdk1.7.0_51\db\lib\derby.jar,要么制作一个看起来像这样的新书.

I'll give you the short version and just say that the book tells me to either edit the current classpath to look something like .;C:\Program Files\Java\jdk1.7.0_51\db\lib\derby.jar or to make a new one that looks like that.

问题是,当我将其更改为时,它一直给我一个路径错误,我只需要修复该错误.我的Java版本是jre1.8.0_111,而database应该被称为CoffeeDB(尽管我认为您不需要该信息).

The problem is when I changed it to look like that it kept giving me a path error and I just need to fixed that error. My version of Java is jre1.8.0_111 and the database I am supposed to be making is called CoffeeDB (though I don't think you need that info).

最终的目的是能够连接到数据库,这样我就可以完成创建和更改数据库的工作.

The end game of this is to be able to connect to databases so I can do my homework of creating and changing them.

如果您需要更多信息来帮助我,而我不愿提供这些信息,我不确定您还需要什么.

If you need more information to help I am more than willing to give it, I'm just not sure as to what more you would need.

推荐答案

为您的PC指定类路径

Specifying the classpath for your pc

请参阅以下IBM 教程关于类路径管理.

See these IBM article and Oracle tutorial about classpath management.

指定Eclipse的类路径

Specifying the classpath for eclipse

Eclipse通常将类路径与系统同步.但是请确保-

Eclipse usually sync the class path with the system. But just to be sure -

第1步: 右键单击当前项目->构建路径->配置构建路径

Step 1: Right click on your current project -> Build Path -> configure built path

第2步: 在左侧选项卡上;选择Java内置路径

Step 2: On left side tab; select Java Built Path

第3步: 在右侧选项卡上;选择添加库

Step 3: On right side tab; select Add Library

第4步: 选择"JRE系统库". 选择环境,已安装JRE(jdk 1.8)->完成->应用->确定.

Step 4: Select JRE System Library. Select Environment, Installed JRE(jdk 1.8) -> Finish -> Apply -> OK.

相关问题(与JDK,JRE的安装有关的问题)

Related Question (problem related to installation of JDK, JRE)

也许您在这里找到了有益的东西

Maybe you find something beneficial here

Eclipse-无Java(JRE)/(JDK)...无虚拟机

这篇关于找不到Java数据库路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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