Git Product home page Git Product logo

Comments (6)

zhirea001 avatar zhirea001 commented on July 19, 2024

I tried to add jintellitype64.dll in appdata\local\jintellitype\1.4.0\ of the new computer,it works,But I don't know why this will take effect, and do I have to manually add DLL files to Disk C every time my jar package runs on another computer

from jintellitype.

melloware avatar melloware commented on July 19, 2024

I forget its been so long but I thought it was try and load it from inside the JAR first. @RocketMaDev any thoughts?

from jintellitype.

RocketMaDev avatar RocketMaDev commented on July 19, 2024

en:

That's quite strange. It works properly on my system. Please show me the file structure in your jar file.

zh:

不应该啊,在我的系统上它工作得很正常。请放一个你打包好的jar的文件结构

from jintellitype.

zhirea001 avatar zhirea001 commented on July 19, 2024

en:

That's quite strange. It works properly on my system. Please show me the file structure in your jar file.

zh:

不应该啊,在我的系统上它工作得很正常。请放一个你打包好的jar的文件结构
client-0.0.1-SNAPSHOT.zip
error1

EN:He reported an error at this position in the figure and could not find his windows internal files
ZH:我认为他是在图中那个位置Classloader获取文件时未找到文件,但是怎么解决我还没搞明白。现象就是我工程IDEA直接启动时classloader可以找到对应的dll文件,工程打成jar包后,classloader就找不到文件了

from jintellitype.

RocketMaDev avatar RocketMaDev commented on July 19, 2024

en:
Yep, you're right. I've checked your jar file and found the path of the library is actually BOOT-INF/classes/com.melloware.jintellitype/JIntellitype64.dll, different from the path defined in class, which can been seen in your exception stack. I have two options now:

  1. Download the source code and modify the jarPath to the actual path I mentioned and then compiled it.
  2. Use the reflection. Modify the method and then load it by yourself.

Considering my code level, a basic learner, you may consult search engine to look for other alternatives if you're not satisfied with the options above.

zh:
你说对了。我已经检查了你的文件结构,但是我发现dll文件位于BOOT-INF/classes/com.melloware.jintellitype/JIntellitype64.dll而不是你在错误堆栈里看到的它应该所在的位置。我现在有两个方案:
第一个就是下载这个项目的源码,然后把jarPath变量的前缀改一下,使其指向正确位置(即上文提到的真实位置),然后把它重新打包成jar
第二个就是用反射修改这个方法,然后手动加载一次

考虑到我还只是一个基础的Java学者,Spring架构还没接触过,所以说如果你对上面的两种方案都不满意的话,请自行搜索解决方案。

from jintellitype.

zhirea001 avatar zhirea001 commented on July 19, 2024

en: Yep, you're right. I've checked your jar file and found the path of the library is actually BOOT-INF/classes/com.melloware.jintellitype/JIntellitype64.dll, different from the path defined in class, which can been seen in your exception stack. I have two options now:

  1. Download the source code and modify the jarPath to the actual path I mentioned and then compiled it.
  2. Use the reflection. Modify the method and then load it by yourself.

Considering my code level, a basic learner, you may consult search engine to look for other alternatives if you're not satisfied with the options above.

zh: 你说对了。我已经检查了你的文件结构,但是我发现dll文件位于BOOT-INF/classes/com.melloware.jintellitype/JIntellitype64.dll而不是你在错误堆栈里看到的它应该所在的位置。我现在有两个方案: 第一个就是下载这个项目的源码,然后把jarPath变量的前缀改一下,使其指向正确位置(即上文提到的真实位置),然后把它重新打包成jar 第二个就是用反射修改这个方法,然后手动加载一次

考虑到我还只是一个基础的Java学者,Spring架构还没接触过,所以说如果你对上面的两种方案都不满意的话,请自行搜索解决方案。

EN:Thanks. It's settled,I changed the way to read files in his source code
temp
ZH:我更改了他源码中读取文件的方式,更改后文件能够正常读取了,谢谢!

from jintellitype.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.