Search 5,000,000+ questions and answers.

Frequently Asked Questions

Do I have to use the AspectJ compiler?

AspectJ Frequently Asked Questions
The AspectJ compiler or weaver is required at some point, but many people can use AspectJ without changing their build or deployment process significantly. For aspects that are not required to compile, you can use the AspectJ binary weaver, run at build-time or class-load-time. You can write aspects using the original code style (which must be compiled with the AspectJ compiler) or using the annotation style new in AspectJ 5 (which may be compiled with Javac or the AspectJ compiler).
Related Questions

What Java virtual machine (JVM) do I use to run the AspectJ compiler?

AspectJ Frequently Asked Questions
Use the latest, greatest, fastest JVM you can get your hands on for your platform. The compiler's performance is dependent on the performance of the JVM it is running on, so the faster a JVM you can find to run it on, the shorter your compile times will be. At a minimum you need to use a Java 2 or later JVM to run the compiler (J2SE 1.3 for AspectJ 1.1). We realize that this constraint can be a problem for users who don't currently have a Java 2 JVM available.
Related Questions

I noticed the AspectJ compiler doesn't use a parser generator. Why is that?

AspectJ Frequently Asked Questions
In AspectJ 1.0, the PARSER for ajc is written by hand. This choice was made with full awareness of the generator tools out there. (Jim had for example used the excellent javacc tool for building the parser for JPython (now Jython)). One of the reasons that AspectJ uses a hand-written parser is that using javacc taught Jim about the LL-k design for parsers (pioneered by antlr). As opposed to the state-machine parsers produced by yacc, these parsers are very readable and writable by humans.
Related Questions

How do I write bugs for the AspectJ compiler?

AspectJ Frequently Asked Questions
The best compiler bug report is a reproducible test case, standalone code that demonstrates the problem. Sometimes with aspects, a test case requires several files, if not some way to capture the behavior. Here's how we recommend submitting test cases: Write the test case so that when the compiler bug is fixed, the test completes normally without output (e.g., expected compiler errors are issued, or classes produced run correctly). This usually means writing one or more source files.
Related Questions

Can I use AspectJ with J2EE?

AspectJ Frequently Asked Questions
JSP: It is possible to use AspectJ to affect code in JSPs by precompiling them into Java sources and compiling these with ajc. This can be used, e.g., to customize displays by turning on and off custom JSP taglibs. The mapping from a given jsp source to java package and class name is not standardized, which means doing this imposes dependencies on specific container versions. EJB: AspectJ supports a wide variety of aspects for EJBs.
Related Questions

How can I use AspectJ with applets?

AspectJ Frequently Asked Questions
Just include the aspectjrt.jar as a required archive. For example, here is the HTML code for an HTML editor applet that contains some debugging aspects: <APPLET CODE='com.company.swing.applets.EditorApplet' WIDTH='700' HEIGHT='525'> <PARAM NAME="CODE" VALUE="com.company.swing.applets.EditorApplet" > <PARAM NAME="ARCHIVE" VALUE ="../company-applets.jar,../aspectjrt.jar,../xmlrpc-applet.jar" > <PARAM NAME="type" VALUE="application/x-java-applet;version=1.
Related Questions

Can I use AspectJ with Generic Java?

AspectJ Frequently Asked Questions
But at this time, unfortunately not. The two compilers are just not at all compatible. In an ideal world, there would be a wonderful Open Source extensible compiler framework for Java that both GJ and AspectJ would be built on top of, and they would seamlessly interoperate along with all other extensions to Java that you might be interested in, but that's not the case (yet?).
Related Questions

Do I have to download Eclipse to use AspectJ?

AspectJ Frequently Asked Questions
No. The AspectJ tools download is completely self-contained and does not require that you work in Eclipse. For information on IDE support, see Q: How well does AspectJ integrate with existing Java development tools?.
Related Questions

How do I use scanf() and gets() functions with the PICC/PICC18 compiler ?

HI-TECH Software Frequently Asked Questions
How do I use scanf() and gets() functions with the PICC/PICC-18 compiler? A. The gets() function is not supplied by the compiler. Becuase gets() will get a string from a programer specified input, such as the serial port, it is easier for the programer to write this function then for it to be supplied in a library. There is a console get string function, cgets(), that will read string from an input using console formatting. The cgets() function is available in the cgets.
Related Questions

What compiler can I use?

OpenGL FAQ / 2 Getting Started
OpenGL programs are typically written in C and C++. You can also program OpenGL from Delphi (a Pascal-like language), Basic, Fortran, Ada, and others. Here are three sites with info on using OpenGL through Visual Basic: http://www.softoholic.bc.ca/opengl/down.htm, http://www.weihenstephan.de/~syring/ActiveX/, http://www.ieighty.net/~davepamn/colorcube.html.
Related Questions

GraphApp Frequently Asked Questions
Any compiler which can produce Windows EXE files. Borland C version 3.0 or higher should work, and Microsoft C should also work. The library works best in the 'Large Memory Model' or the '32-bit Memory Model' What about TURBO C? Turbo C probably won't work because it is an older compiler which pre-dates Windows.
Related Questions

Is it safe to use AspectJ in my product plans?

AspectJ Frequently Asked Questions
You may use AspectJ in your product or project with little risk. Several factors play a role in reducing the risk of adopting this new technology: AspectJ is an addition to Java, and can be introduced into a project in a way that limits risk. See Q: How should I start using AspectJ? for some suggestions on how to do this. The AspectJ compiler accepts standard Java as input and produces standard Java bytecode as output. In 1.
Related Questions

What compiler does Cygwin/X use, and which compilers are supported?

Cygwin/X Frequently Asked Questions
Cygwin/X uses the gcc compiler from the Free Software Foundation. Cygwin/X source code is mostly ANSI C compliant, but we cannot guarantee that Cygwin/X will compile with any other compiler, nor can we afford the time to support compilers other than gcc.
Related Questions

Is C++ a superset of C? Can I use a C++ compiler to compile C code?

Infrequently Asked Questions in comp.lang.c
C++ is a superset of something, we're not sure what. You can use a C++ compiler to compile C code, but the results may surprise you.
Related Questions

I'm using C++ but would prefer to use a different compiler than the one on CEC. Is this possible?

CS 241 Frequently Asked Questions (FAQs)
Sure. However, you will be responsible for making any needed modifications to the provided code. The provided IntervalTimer will not work on other platforms since it makes calls into the Unix operating system. You can replace this by whatever system utility you have to get the time. Then by getting the time before and after the algorithm runs you can take their difference to determine the elapsed time. Just be sure that your procedure is the only process running.
Related Questions

Can I use Allegro with my <foobar> compiler?

Allegro - Documentation - Frequently asked questions
Not unless <foobar> is mentioned in readme.txt as one of the supported platforms. You could port it, but that is usually a lot of work. If <foobar> is a 16 bit DOS compiler like Borland C, you might as well just forget the idea :-)
Related Questions

Which compiler should I use and where can I compile my codes?

You should use the Compaq compiler fort to compile both your fortran 77 and fortran 90 programs. C and C++ programs can be compiled with gcc or g++, respecively. To compile and link your MPI programs to the MPI libraries, use mpif77, mpif90, or mpicc. The mpi scripts use fort to compile and link your fortran MPI programs, and gcc or g++ to compile and link your MPI C or C++ programs. You can compile your codes on any machine, and you do not need to submit a job to compile your codes.
Related Questions

Question: Which compiler should I use?

Big C++ FAQ
Microsoft Visual C++ 6 and later. (If you use Visual C++ 6, be sure to install the latest patches after installing from the CD ROM. The CD ROM version is very buggy.) The following compilers will definitely not work:
Related Questions

What compiler is required/should I use?

MBDyn's FAQ
MBDyn should be written in standard C/C++, so any standard compliant C/C++ compiler should be fine. If it's not, then it's a bug that should be notified to the developers and (hopefully) fixed. The typical development environment used at DIA/Polimi is gcc/g++ (as of this writing, gcc 3.4 and experimentally gcc 4.
Related Questions

I already have C++ compiler x, can I use it?

FAQ
Yes, but you should compile and run your test cases using the Cygwin/GNU compiler (g++) in the lab before you submit your assignments. If it works there, then it's ok. (Of course we may find test cases for which your program doesn't work on any compiler.) where files is a list of one or more files that the compiler is to compile, and options is one or more of the following. (There are others, these are just the most relevant ones.) Give all warnings.
Related Questions

Which compiler must I use to build a plugin?

CPS
On the Macintosh, you can only use the g++ compiler. All examples use this compiler. If you type 'g++' inside a 'Terminal' and it gives some output, then it is already installed. If the command is not found, then you should download it together with ProjectBuilder or Xcode, which are nice graphical editors (IDE's). On Windows, the only supported compiler is Microsoft C++ (5 or higher), though a lot of people have worked with all kinds of other compilers succesfully as well.
Related Questions

How is AspectJ licensed?

AspectJ Frequently Asked Questions
AspectJ 1.1 through 1.5.1 source code and documentation is available under the Common Public License 1.0. The AspectJ 1.0 tools are open-source software available under the Mozilla Public License 1.1. That documentation is available under a separate license that precludes for-profit or commercial redistribution. Most users only want to use AspectJ to build programs they distribute. There are no restrictions here.
Related Questions

What is the AspectJ Project?

AspectJ Frequently Asked Questions
AspectJ is based on over ten years of research at Xerox Palo Alto Research Center as funded by Xerox, a U.S. Government grant (NISTATP), and a DARPA contract. It has evolved through open-source releases to a strong user community and now operates as an open source project at http://eclipse.org/aspectj The AspectJ team works closely with the community to ensure AspectJ continues to evolve as an effective aspect-oriented programming language and tool set. The latest release is 1.
Related Questions

What optimizations does the C# compiler perform when you use the /optimize+ compiler option?

C
The following is a response from a developer on the C# compiler team: We get rid of unused locals (i.e., locals that are never read, even if assigned). We get rid of unreachable code. We get rid of try-catch with an empty try. We get rid of try-finally with an empty try. We get rid of try-finally with an empty finally.
Related Questions

How do I use Ant to build my AspectJ projects in AJDT?

AJDT: Frequently Asked Questions
To use Ant to build an AspectJ project you need to use the iajc Ant task instead of the javac task. The definition of this is found in ajde.jar in the org.aspectj.ajde plug-in. In addition you will need some other plug-ins on the classpath. A simple example written for Eclipse 3.2.1 is shown below. Note that paths and version numbers will be different on different machines and different Eclipse versions.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact