• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Monthly Archives: August 2012

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

26 Sunday Aug 2012

Posted by Scott in Code Samples, Java

≈ Comments Off on java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

Tags

Java, maven

On a team doing a java project (not the one for work. I hate that one and wish I could find a new job, it sucked that much joy out of life) got the java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path error when I tried to run a reference project I was reviewing.

The two answers that I liked the most (because I could have just imported the lwjgl jar, but then the project would have that reference to the path on my Mac, and the source I downloaded had the authors Windows path, so it’s all stupid at this point) were to use a plugin to extend the M2E Maven plugin for Eclipse — see http://maven.40175.n5.nabble.com/How-to-manage-librairy-with-native-dll-in-maven-td5652069.html … basically add the http://mavennatives.googlecode.com/svn/eclipse-update/ location when adding software to eclipse and then add the plugin…

then add the following to your pom.xml:

<plugin>
  <groupId>com.googlecode.mavennatives</groupId>
  <artifactId>maven-nativedependencies-plugin</artifactId>
  <version>0.0.6</version>
  <executions>
    <execution>
      <id>unpacknatives</id>
      <phase>generate-resources</phase>
      <goals>
        <goal>copy</goal>
      </goals>
    </execution>
  </executions>
</plugin>

 

— and then add

-Djava.library.path=target/natives

to the VM arguments in your run configuration — https://groups.google.com/forum/?fromgroups=#!topic/playn/E2t7gNh4ab0 is where I got that one.

And it was all good.  The reference project in questions sucked, but at least I was able to get Maven to do what I think it should do…

Advertisement

Consuming RESTful web service(s) in C#

17 Friday Aug 2012

Posted by Scott in C#

≈ Comments Off on Consuming RESTful web service(s) in C#

Tags

C#

Playing with Visual Studio 2012 (looks weird, as does the MS web site now, but functionally so far is similar to 2010.  Also liking the TFS-in-the-cloud service trial) and working on a project that will consume a 3rd party REST web service.  I’m all about consuming XML/SOAP web services, but I’ve only used a RESTful service once before.

So, this is my link dump for research:

http://ideanotion.net/consume-restful-web-services-in-c/

 

Today’s links and stuff to sort

03 Friday Aug 2012

Posted by Scott in Apache Tomcat, Application Servers, Networking

≈ Comments Off on Today’s links and stuff to sort

Tags

Linux Java

Tomcat memory error starting an application: http://www.mkyong.com/tomcat/tomcat-javalangoutofmemoryerror-permgen-space/

Jenkins/Maven generate WAR file missing files (and additional directories) from inside /WEB-INF/classes/ event though MyEclipse was building it correctly.
added the following to the pom.xml file…

      <resource>
      	<directory>${basedir}/src/main/resources</directory>
      	<filtering>false</filtering></resource>
    </resources>

 

 

OpenJDK on CentOS missing javac

02 Thursday Aug 2012

Posted by Scott in Java, Linux / UNIX, Operating Systems

≈ Comments Off on OpenJDK on CentOS missing javac

Tags

linux

CentOS6 with OpenJDK 6 previously installed…Jenkins failed to build a project because it couldn’t find javac. Today’s lesson, OpenJDK is just the JRE package. You need to install java-1.6.0-openjdk-devel to get a real JDK.

see http://openjdk.java.net/install/

the rub — be sure to run

sudo yum install java-1.6.0-openjdk-devel

Stupid piece of C# I always forget about

01 Wednesday Aug 2012

Posted by Scott in C#, Code Samples

≈ Comments Off on Stupid piece of C# I always forget about

Tags

C#

review and put up better example/documentation for this…

w.temp = (f.Temperature == “”) ? ” ” : f.Temperature;
w.desc = (f.Description == “”) ? ” ” : f.Description;

 

http://msdn.microsoft.com/en-us/library/ty67wk28.aspx

Recent Posts

  • Bulk commands to install PHP and MySQL on CentOS 7
  • Four year gap? No, had just been self-hosting for a while
  • winhttpcertcfg.exe Example
  • Configure Tomcat 7 to use HTTPS
  • SCP on Mac (and a tool for Windows)

Archives

  • November 2018
  • October 2018
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012

Categories

  • Apache Tomcat
  • Apache Web Server
  • Application Servers
  • C#
  • CMS
  • Code Samples
  • Databases
  • Development Tools
  • Drupal
  • IIS
  • Java
  • Linux / UNIX
  • MS SQL Server
  • Networking
  • Operating Systems
  • Oracle
  • Uncategorized
  • Video Games
  • Windows
  • WordPress

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Create a free website or blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • <roughCode/>
    • Already have a WordPress.com account? Log in now.
    • <roughCode/>
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar