public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: Carl <carlchatfield@gmail.com>
Cc: java@gcc.gnu.org
Subject: Re: Setting classpath to include junit
Date: Wed, 25 Mar 2009 09:36:00 -0000	[thread overview]
Message-ID: <49C9FAF8.8020909@redhat.com> (raw)
In-Reply-To: <d56eedfb0903241501k23a3ce7co5dd7fa789c681d35@mail.gmail.com>

Carl wrote:
> Hi, I couldnt find a java-help mailing list like there is for
> gcc-help, so I hope this is the right place to post. Im trying to use
> gcj from the command line to compile a java assignment for university,
> but i cant seem to work out how to add junit to my build path (is that
> a java-y term, idk). Anyway, I can compile using gcj as long as I dont
> go outside the scope of libgcj.jar. Im using a debian system, and I
> have a directory called /usr/share/java/ which contains junit.jar. Ive
> tried virtually every permutation of CLASSPATH, with things like
> export CLASSPATH=/usr/share/java/junit.jar
> and so on. Anyway, regardless of what i do i keep getting a
> LinkedDequeTest.java:3: error: The import org.junit cannot be resolved
>         import org.junit.Test;
> I gave in and installed the sun javac, only to get a similar error message.
> LinkedDequeTest.java:3: package org.junit does not exist
> import org.junit.Test;
> So im hoping that its just a problem with my configuration. Ive
> already purged sun java and vrms is slightly less mad at me. Thanks
> for any help, I just cant seem to figure this one out on my own.

If you'd actually provided a small example I probably would have an
answer for you immediately, but as it is I can only guess what you're
doing wrong.  In the example above you show the compiler output but you
don't show the command line that produced it.

Provide me with a complete example and I'll show you how to build it.

Andrew.

  reply	other threads:[~2009-03-25  9:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-24 22:01 Carl
2009-03-25  9:36 ` Andrew Haley [this message]
2009-03-25 14:24   ` Carl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49C9FAF8.8020909@redhat.com \
    --to=aph@redhat.com \
    --cc=carlchatfield@gmail.com \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).