Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: Dynamic compilation problem

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic compilation problem

    hi ,

    Here is my problem scenario

    Im having three classes
    Class A,Class B,Class C,Abstract class D

    class c extends Class D

    class A belongs to package abc and
    class B belongs to package xyz

    in both the classes im creating the instance of Class C

    now i want to dynamically compile the classes

    I tried after some googling ,but i found that if all are in the same package it works fine
    but if it is as original it is throwing some error like

    "Java cannot find symbol
    symbol : Class c"

    help me solving this issue


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,370
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Dynamic compilation problem

    What have you tried? Are you doing this by command line? Have you tried compiling all of the classes at once?

  3. #3
    Junior Member
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Dynamic compilation problem

    hi,
    Actually i was dynamically compiling the classes through web server( Tomcat ) externally.yes im compiling all the classes at once

    thanx for reply

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,370
    My Mood
    Hungover
    Thanks
    144
    Thanked 626 Times in 537 Posts

    Default Re: Dynamic compilation problem

    Sorry, I don't know anything about Tomcat. Can you get it to work using the command prompt directly?

  5. #5
    Junior Member
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Dynamic compilation problem

    hi,
    if you have any working example please update.

Similar Threads

  1. A problem with command line compilation
    By goodguy in forum Java Theory & Questions
    Replies: 4
    Last Post: August 2nd, 2010, 10:58 AM
  2. [SOLVED] Dynamic numbber of JPanels
    By nasi in forum AWT / Java Swing
    Replies: 2
    Last Post: May 14th, 2010, 02:44 AM
  3. dynamic method problem...
    By Ranger-Man in forum Object Oriented Programming
    Replies: 8
    Last Post: September 7th, 2009, 04:22 PM
  4. Replies: 2
    Last Post: July 8th, 2009, 06:35 AM
  5. Replies: 6
    Last Post: April 29th, 2009, 09:35 AM

Tags for this Thread