在Windows 7中如何在Eclipse中安装Qt-Jambi? [英] How to install Qt-Jambi in Eclipse in windows 7?

查看:319
本文介绍了在Windows 7中如何在Eclipse中安装Qt-Jambi?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在编程中是新的,我想在Windows 7中的Eclipse中安装Qt-Jambi。
可以用一步一步的方法向我解释一下吗?
我已经搜索,但是我没有找到一个简单的解释过程或教程。
提前感谢

解决方案

作为QtJambi维护者,我提供了这个答案,以帮助解决这个问题有人搜索。



没有正式的方式来安装QtJambi系统范围,这可能是这个答案没有回答这么久的原因。因为没有回答这个问题。



有一种官方方法来安装Java JRE或JDK,这是一个很好的路径,使用EXE Sun / Oracle发行。但是在很大程度上对于Java应用程序空间和Java开发空间来说,没有正式的方法来做这些事情,事实上这个问题基本上留给了应用程序,并且在应用程序部署时,将ClassPath正确地与应用程序一起使用



所以我可以建议你是一些想法/提示,你可以如何做 - 开发和应用程序部署。



...



决定是否将Windows 7开发为32位或64位。如果您希望您的应用程序在所有Windows计算机(WinXP / WinVista)上工作,那么32位可能是您的选择(因为没有太多的桌面应用程序需要使用超过〜1.5Gb的内存,这是关于有效的usdable内存,您将获得,如果你需要这个或更多,然后使用64位)。



一旦你决定了你正在工作的环境,你需要确保你安装了这个Java JDK。在Windows 64位系统上,您可以同时安装32位和64位JDK / JRE。他们最终在不同的目录C:\Program Files\Java和C:\Program Files(x86)\Java。



如果你选择去32位那么也许你也会使用32位Eclipse(并且参见麻烦在Windows 64位系统上安装QT Jambi ,以获得帮助)。这可能允许oyu使用Eclipse IDE发布的QtJambi GUI设计器(几年前)。



现在,您可以选择要从sourceforge下载哪个QtJambi(或其他下载网站)。这可能只是一个ZIP文件,您可以在系统上解压缩所需的位置,然后将开发环境设置为指向其中提供的JAR。将所有JAR包含在您的类路径中不应该受伤。



解压缩本机JAR(即包含DLL / DSO的JAR)可能很有用。然后使用解压缩的目录作为java.exe的-classpath条目。原因是QtJambi将打包这些文件,因为DLL / DSO只能在操作系统被解压缩为常规文件时加载。 QtJambi将尝试在每次启动EXE时解压缩,这将减缓开发速度。



除此之外,请查看项目GIT中提供的示例和Launcher的来源(或在ZIP下载中可能是* -src.jar)。



...



要部署QtJambi作为应用程序(给予第三方使用应用程序),只需要确保-classpath被设置为包含您需要的QtJambi JAR。



还建议在开发期间部署与上述相同的原理解压缩的Native JAR。这个数据的JAR格式是一种更易于使用的格式,但是安装后应该解压缩。


I am new in programming and I want to install Qt-Jambi in Eclipse in windows 7. Can you explain it to me with a step-be-step procedure? I have searched but I didn't find a easy explaining procedure or tutorial. Thanks in advance

解决方案

As a QtJambi maintainer, I provide this answer so as to help close off this issue for someone else searching.

There is no official way to install QtJambi system-wide, which might be the reason this answer has remained unanswered for so long. Since there is no answer to the question that was put.

There is an official way to install the Java JRE or JDK that is a well trodden path using the EXE Sun/Oracle release. But largely for Java application space and Java development space there are no official way of doing these things and the matter is largely left upto the application program and package things up and get the "ClassPath" correct for use with the application when that application is deployed.

So all I can advise to you are some ideas/tips on how you might do-it-yourself for development and application deployment.

...

Decide if you are developing for Windows 7 as 32bit or 64bit. If you want your application to work on all windows computers (WinXP/WinVista) then 32bit maybe your choice (as there are not many desktop application that need to use more than ~1.5Gb of memory, which is about the effective usdable memory you will get, if you need this or more then use 64bit).

Once you have decide which environment you are working you need to ensure you have that Java JDK installed. On a Windows 64bit system you can install both 32bit and 64bit JDk/JRE side-by-side. They end up in different directories C:\Program Files\Java and C:\Program Files (x86)\Java.

If you choose to go 32bit then maybe you will also use 32bit Eclipse (and see Trouble installing QT Jambi on a Windows 64 bit system for help with that). This may allow oyu to use the QtJambi GUI designer that was released (some years ago now) for Eclipse IDE.

Now you can select which QtJambi to download from sourceforge (or other download site). This maybe just a ZIP file which you unzip where you want on your system, then setup your development enviroment to point to the JARs provided inside it. It should not hurt to include all JARs in your classpath.

It can be useful to unzip the native JAR (that is the JAR that contains DLL/DSO inside it). Then use the unzipped directory as a -classpath entry to java.exe. The reason for this is that QtJambi will unpack these files since DLL/DSOs can only be loaded by the operating system when they are unpacked as regular files. QtJambi will attempt to unpack everytime you start the EXE which will slow down development.

Other than this take a look at the source of the examples and Launcher provided in the project GIT tree on gitorious (or maybe *-src.jar in the ZIP download).

...

To deploy QtJambi as an application (to give to a 3rd party to use your application) you simply need to ensure the -classpath is setup to include the QtJambi JARs you need.

It is also recommended to deploy the Native JAR unzipped for the same reasons as above during development. The JAR format of this data is more a convienience format to throw it around but an installed should unzip it.

这篇关于在Windows 7中如何在Eclipse中安装Qt-Jambi?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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