java 数据库路径,找不到Java数据库路径

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).

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.

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.

解决方案

Specifying the classpath for your pc

See these IBM article and Oracle tutorial about classpath management.

Specifying the classpath for eclipse

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

Step 1:

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

Step 2:

On left side tab; select Java Built Path

Step 3:

On right side tab; select Add Library

Step 4:

Select JRE System Library.

Select Environment, Installed JRE(jdk 1.8) -> Finish -> Apply -> OK.

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

Maybe you find something beneficial here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值