Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 9th July 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Default How to java on FreeBSD?

import java.lang.reflect.Array;
class Test
        public static void main( String argv[] )
                System.out.println( "Arguments:" );
                int i = 0;
                while( i < Array.getLength(argv) )
                        System.out.println( argv[i] );
so how to compile ?

# java Test argument1 argument2 argument3
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java and AI-programming idefix Programming 4 7th February 2009 01:41 PM
FreeBSD 7 and Java? Atazoth FreeBSD General 3 10th September 2008 10:38 PM
java compiler bsdnewbie999 OpenBSD Packages and Ports 8 9th August 2008 12:18 PM
Java JDK Oko OpenBSD Packages and Ports 10 13th July 2008 07:39 PM
Odd Java Issue DrJ FreeBSD Ports and Packages 0 12th May 2008 12:35 AM

All times are GMT. The time now is 06:48 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick