How do I add a jar to netbeans 7.3.1? - jar

Instructions I've found seem to be for older version of netbeans, how do I add a jar to netbeans version 7.3.1?

Ah, didn't have to add it to netbeans, but to maven - edited the pom.

Related

How to check whether there are newer versions of library dependencies in an sbt/play/activator project

Is there any command in Activator that can list all the dependencies and libraries that I use with the current version and newer versions that is possible to use to update my project?
This is similar that the apache maven command versions:display-dependency-updates.
Is there any similar command available?
You're looking for sbt-updates, which is a plugin for sbt and activator.
Install the plugin and execute activator dependencyUpdates to see the list of outdated dependencies.

aptana 2.0.5 & emmet plugin

after installing emmet (from http://emmet.io/eclipse/updates/ ) i received this message below:
Cannot complete the install because one or more required items could not be found.
Software being installed: Emmet for Eclipse 1.0.0.201303162055 (io.emmet.eclipse.feature.group 1.0.0.201303162055)
Missing requirement: Emmet for Eclipse 1.0.0.201303162055 (io.emmet.eclipse 1.0.0.201303162055) requires 'bundle org.eclipse.core.expressions 3.4.300' but it could not be found
Cannot satisfy dependency:
From: Emmet for Eclipse 1.0.0.201303162055 (io.emmet.eclipse.feature.group 1.0.0.201303162055)
To: io.emmet.eclipse [1.0.0.201303162055]
With aptana 3.0 it works fine.
Looks like it doesn’t work in Aptana 2.0 since it’s Eclipse core is very outdated. Try to use latest Eclipse and install Aptana as plugin into it
Just update your Aptana! , then it will work better:)

JavaFX on mac install not found

So I am trying to run a simple helloworld app for the javafx but its packages cannot be found. Ok so must be some kind of path issue right?
I have downloaded the co-bundled version from here:
http://www.oracle.com/technetwork/java/javafx/downloads/index.html
You would expect that a co-bundled would install just as the SE package installed. I have searched the net and people give windows answers with windows path's to a mac problem. Which is really IMO a java problem because either you co-bundle like you said you did and install both or keep them separate!
I have yet to find an appropriate solution to getting javafx to be included in the compile, that does not involve including long paths.
EDIT:
After installing netbeans and creating a javafx project, it had no trouble locating the appropriate packages. I think at this point it should be clear that FX is co-bundled with the SE version however they ( java maintainers ) have decided to make it decidedly uneasy to get FX working from the command line. Any insight into this otherwise dumb decision?
Some choices:
Use JavaFX 8 which places JavaFX is on the default runtime classpath.
Package your application with the Oracle JavaFX deployment tools that will insert code in your app to find JavaFX.
Manually add the path to jfxrt.jar to your your compile and runtime classpath if you cannot do either of the above.
For 3 you can find jfxrt.jar for the jre under:
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
If you have jdk7 installed, you can run a JavaFX app (packaged using the JavaFX deployment tools) from the command line using something like the following:
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
java -version
java -jar application.jar
If it is just the JRE7 installed and no JDK, then you can use:
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar application.jar
Per option #3 in Jewelsea's answer, here's how it looked in my ant build file:
<property name="jfx.dir" value="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/lib"/>
<path id="project.class.path">
<pathelement path="${classpath}"/>
<pathelement location="${jfx.dir}/jfxrt.jar"/>
</path>
<target name="compile"
description="Compiles the source code.">
<mkdir dir="${classes.dir}"/>
<javac includeantruntime="false"
srcdir="${src.dir}"
destdir="${classes.dir}">
<classpath refid="project.class.path"/>
<exclude name="**/package-info.java"/>
</javac>
</target>
I am using JavaFX in class work right now in University. I just found that no JDK version would run JavaFX EXCEPT 10.0.2. Uninstall all other versions and run 10.0.2 and JavaFX should work.

Add sbt plugins to Eclipse scala-ide

I have scala project that I use sbt to manage and I have a sbt plugin (sbt-twirl to be specific) that I need for the project. Now I would like to use Eclipse for editing/debugging the project. As usual, I used sbt-eclipse to generate the Eclipse project files and use scala-ide plugin in Eclipse. However, the Eclipse project does not compile the code that requires the sbt-twirl plugin. I am guessing that the sbt used by Eclipse is not picking up the sbt-twirl plugin. Is there any way to configure Eclipse's sbt to use the sbt-twirl plugin (configure either automatically through sbt-eclipse, or manually in Eclipse)?
I am using Eclipse Indigo (3.7.2) with Scala IDE 2.0.2 .
Thanks in advance.

Building Qt 4.7.3 (latest) on windows

I have downloaded the open source version of Qt 4.7.3, run configure.exe to configure it, how do I then build it (to have a qmake.exe I can use) on windows?
if you do configure -platform win32-msvc2010 (or2008 etc) it will generate a vs2010 project, just open the .sln and built it.
configure.exe should have caused qmake.exe to build. You'll want to add its location to your path. (It's in the bin directory of your Qt installation).

Resources