Class package hell
aaaahhhh! I've been struggling with this for hours! Please
help if you can ...
"import fl.video.*" will not work. also "import
fl.containers.UILoader" will not load what it needs to. it appears
that my primary class paths have somehow gotten messed up. i have
no idea why. these all worked a few months ago without any special
effort. once i start to track these down in their directories, it
can get a bit confusing! doesn't flash refer to these standard
packages with no special effort (shouldn't "." do the trick for all
inherent Flash CS3 installed packages)? must i set special class
paths to these? i'd rather not. and even so, when i set very
specific class paths to these packages, then other related ones are
still not referenced correctly.
what do i need to do? re-installed CS3?
i find very little on-line support for such things. anyone
have some insight?
miquael,
> "import fl.video.*" will not work. also "import
fl.containers.UILoader"
> will not load what it needs to.
In addition the import directive, you'll need a copy of the
desired
component(s) in the Library. Have you done that?
> shouldn't "." do the trick for all inherent Flash CS3
installed packages?
The dot (.) just means, "Look in the same folder as the FLA
file," so
that's great for custom classes that are quick one-offs. It
even works with
nested packages in the same folder as the FLA -- but it
doesn't cause Flash
to look in the installation directory.
> what do i need to do? re-installed CS3?
Probably not. What version of ActionScript are you talking
about? The
default classpaths settings for AS2 -- on my machine, which
runs on Win
XP -- is the dot, then $(LocalData)/Classes. For AS3, it's
the dot, then
$(AppConfig)/ActionScript 3.0/Classes.
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design."
Similar Messages
-
Creation of developement class,package and access key
COULD ANYBODY EXPLAIN about
creation of developement class,package and access key
and who will create them?Working With Development Objects
Any component of an application program that is stored as a separate unit in the R/3 Repository is called a development object or a Repository Object. In the SAP System, all development objects that logically belong together are assigned to the same development class.
Object Lists
In the Object Navigator, development objects are displayed in object lists, which contain all of the elements in a development class, a program, global class, or function group.
Object lists show not only a hierarchical overview of the development objects in a category, but also tell you how the objects are related to each other. The Object Navigator displays object lists as a tree.
The topmost node of an object list is the development class. From here, you can navigate right down to the lowest hierarchical level of objects. If you select an object from the tree structure that itself describes an object list, the system displays just the new object list.
For example:
Selecting an Object List in the Object Navigator
To select development objects, you use a selection list in the Object Navigator. This contains the following categories:
Category
Meaning
Application hierarchy
A list of all of the development classes in the SAP System. This list is arranged hierarchically by application components, component codes, and the development classes belonging to them
Development class
A list of all of the objects in the development class
Program
A list of all of the components in an ABAP program
Function group
A list of all of the function modules and their components that are defined within a function group
Class
A list of all of the components of a global class. It also lists the superclasses of the class, and all of the inherited and redefined methods of the current class.
Internet service
A list of all of the componentse of an Internet service:
Service description, themes, language resources, HTML templates and MIME objects.
When you choose an Internet service from the tree display, the Web Application Builder is started.
See also Integrating Internet Services.
Local objects
A list of all of the local private objects of a user.
Objects in this list belong to development class $TMP and are not transported. You can display both your own local private objects and those of other users. Local objects are used mostly for testing. If you want to transport a local object, you must assign it to another development class. For further information, refer to Changing Development Classes
http://help.sap.com/saphelp_46c/helpdata/en/d1/80194b454211d189710000e8322d00/content.htm
Creating the Main Package
Use
The main package is primarily a container for development objects that belong together, in that they share the same system, transport layer, and customer delivery status. However, you must store development objects in sub-packages, not in the main package itself.
Several main packages can be grouped together to form a structure package.
Prerequisites
You have the authorization for the activity L0 (All Functions) using the S_DEVELOP authorization object.
Procedure
You create each normal package in a similar procedure to the one described below. It can then be included as a sub-package in a main package.
To create a main package:
1. Open the Package Builder initial screen (SE21 or SPACKAGE).
2. In the Package field, enter a name for the package that complies with the tools Naming Conventions
Within SAP itself, the name must begin with a letter from A to S, or from U to X.
3. Choose Create.
The system displays the Create Package dialog box.
4. Enter the following package attributes:
Short Text
Application Component
From the component hierarchy of the SAP system, choose the abbreviation for the application component to which you want to assign the new package.
Software component
Select an entry. The software component describes a set of development objects that can only be delivered in a single unit. You should assign all the sub-packages of the main package to this software component.
Exception: Sub-packages that will not be delivered to customers must be assigned to the HOMEsoftware component.
Main Package
This checkbox appears only if you have the appropriate authorization (see Prerequisites).
To indicate that the package is a main package, check this box.
5. Choose Save.
6. In the dialog box that appears, assign a transport request.
Result
The Change package screen displays the attributes of the new package. To display the object list for the package in the Object Navigator as well, choose from the button bar.
You have created your main package and can now define a structure within it. Generally, you will continue by adding sub-packages to the main package. They themselves will contain the package elements you have assigned.
See also
Adding Sub-Packages to the Main Package
http://help.sap.com/saphelp_nw04/helpdata/en/ea/c05d8cf01011d3964000a0c94260a5/content.htm
access key used for change standard program.
www.sap.service.com -
Need FM/Class for Direct deletion of Development Class/Package in ABAP
Hi experts,
I had stored all the unwanted objects in a development class/ package which I intended to delete later. I want this deletion to be done automatically. Is there a function module or class that can help me do this?
Thanks in advance,
Adithya
Edited by: Adithya K Ramesh on Jul 18, 2011 3:56 PMI was hoping a separate server-side process wouldn't be needed -- if you're thinking of something like RMI, that's also a bit heavyweight for my needs. I know I can talk to the remote server on telnet port 23, though.
Further experimentation today with the Jakarta net library has generated something that works using their telnet classes. (After I asked for help here, of course. The same thing happens when I shop for groceries....) But using this leaves me referencing an external library that:
1. has functionality I don't need that complicates the code, and
2. forces me to address licensing requirements.
So I'd still love to see an example of a telnet-like Java class that strips away all the non-essentials in the Jakarta telnet library code, leaving behind a simple public domain class that can be used to connect to a remote host and transfer characters over that connection.
I appreciate that this may be asking for a lot, but as they say, if you don't ask, you don't get. ;-)
Thanks! -
How to create development class (package)
Hi
Can anybody help me out in creating development class (package) to store ABAP programs.
Thanks in advance
RaghavHi
go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
provide the name and short text,software component->create req.no.
with this dev class will be created
or
Use the transaction SE80.
1. Select "Package" from the list box.
2. Enter "ZEST" in the below text box
3. Press "Enter".
4. It will ask you whether to create.
5. Sy "Yes".
6. Give Short Description
7. Click Save button.
check this
How to create development class
If u find it useful plz reward the points
charitha
Message was edited by:
charitha kolla -
How to refer the class package "com.sapportals.connector" for MDM API?
Hi,
Iam trying to execute one example mdm api program in dynpro/ejb.
I could not refer the class package com.sapportals.connector.
What SCA or build path package needed for dev time and runtime and where do i get that.
Please help me.
Thanks
HariHi Armin,
Sorry that I still got problem on importing and make use of the class for knowledgemanagement. I can found the cooresponding .jar file in folder "jakarta-tomcat-3.3.2\webapps\irj\WEB-INF\plugins\portal\services\knowledgemanagement\lib". And added the services reference as "ServicesReference=htmlb, knowledgemanagement". However, I still can't use the class for KM.
I have read those code sample from KM in SDN, but they are mentioning the programming part and not the setting. Can you suggest the detail steps and code on adding the KM class into my customize class?
I am using Eclipse as my development tools.
Thanks & Regards
Sam
Message was edited by: Sam Choy -
Download entire Development Class/Package
Hi Guys !
Is there a way (program, external tool, etc) to export/download ENTIRE development class to a file which can be browsed on every computer - without connection to SAP at all.
What I am looking for - is some kind of a tool which as input - takes name of Development class (Package) and produces TXT, HTML or any other file format, containing ALL Dictionary objects, all programs, includes, transactions, all function groups with function modules and even screens - GENERALLY - everything you see under Package - in SE80.
I found may programs to "dump" Programs, but I need more than programs.
Thanks in advance.Hi
Check this link
[http://www.dalestech.com/products/massdownload.htm]
"This program is capable of downloading customer code at the push of a button. Mass Download was designed around a super fast source code scanner capable of finding as many items of code, text and documentation needed to successfully download pieces of work for off-line viewing. And if that wasn't enough we give you the option of downloading in plain ASCII text or in hyperlinked HTML format." -
Does anyone know where I can get FTP classes/package from. there are good codes here to use FTP but the package is not park of the generic JDK.
Hope anyone can help.
regards,
GHOZThis Google search gives a lot of promising links:
http://www.google.com/search?q=java+ftp+classes&sourceid=opera&num=0&ie=utf-8&oe=utf-8 -
(AS3) How to divide my code into classes/package
Anyone familiar with this? I have already tried dividing
among classes and it is not working.
I have created the following code that pulls data from an
external xml file into a datagrid. I have been trying to figure out
how to get it to function using classes and/or packages. I'd like
to separate the functionality into separate classes for each of the
following:
1) A class for loading the XML file(s) (there will likely be
more datagrids and more xml files)
2) A class for "drawing" the datagrid based on the xml
.... others you can think of??
I have attached the code in question.
Thanks,
MarkClasses in AS3 need to be in packages now, e.g.:
// package needs to be included in same directory with FLA or
in class look up targets
package {
// import statements go here
// needs to be public for access outside of package
directory
public class NewXMLClass {
// again public makes it accessible to other classes
public function NewXMLClass() {}
// inlcude your methods here
use an import statement to use it in other classes e.g.
import NewXMLClass;
Hope that helps... -
Class/Package problem with tomcat
Hi everyone,
i am pretty new to tomcat and jsp and I have to setup a webapp using tomcat. Actually I setup the tomcat-server and moved all files in the webapps/ROOT/myapp directory. Unfortunately I get the following error-message when I access the main page of the webapp: org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 14 in the jsp file: /myapp/index.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.29/work/Standalone/localhost/_/myapp/index_jsp.java:43: package de.myclasses.myapp.beans does not exist
de.myclasses.myapp.beans.MyClass tmb = null;The package de/myclasses/myapp/beans is in the classes directory in the WEB-INF folder within my application directory. So do I have to set something like a CLASSPATH somewhere?
Thanks!Hi everyone,
i am pretty new to tomcat and jsp and I have to setup
a webapp using tomcat. Actually I setup the
tomcat-server and moved all files in the
webapps/ROOT/myapp In this case, the webapps/ROOT/ is you application directory (servlet context). The myapp is a sub-context, and does not get a WEB-INF directory.
So, either your classes should be in:
webapps/ROOT/WEB-INF/classes/...
or (better) you should make a new Servlet Context in parallel to the ROOT context (under webapps)
webapps/myapp/
and put the classes under
webapps/myapp/WEB-INF/classes/...
Don't forget to make a webapps/myapps/WEB-INF/web.xml.
directory. Unfortunately I get the
following error-message when I access the main page
of the webapp: org.apache.jasper.JasperException: Unable to compile
class for JSP
An error occurred at line: 14 in the jsp file:
/myapp/index.jsp
Generated servlet error:
[javac] Compiling 1 source file
/usr/local/jakarta-tomcat-4.1.29/work/Standalone/local
host/_/myapp/index_jsp.java:43: package
de.myclasses.myapp.beans does not exist
de.myclasses.myapp.beans.MyClass tmb =
tmb = null;The package de/myclasses/myapp/beans is in the
classes directory in the WEB-INF folder within my
application directory. So do I have to set something
like a CLASSPATH somewhere?
Thanks! -
i am currently developing a flash movie with no graphics at
the moment. It is being done with a lot of classes and packages,
many of the AS classes import the same packages as well. I have
many linked movie clips to those classes.
The problem is that when i compile it takes quite a long
time. I want to know if there is a way to have a single file for
all my classes (like an include file) as opposed to having a dozen
import lines of code in each AS script.I'm a newbie too, but I thought I would give you this URL. It was extremely helpful when I began using packages. I hope it helps.
http://developer.java.sun.com/developer/onlineTraining/new2java/divelog/part1/page9.jsp -
Importing classes, package, Jamlab, JAMA
Hello:
I am using, inside a JSP, a modified version of this code --> http://www.developer.com/java/other/article.php/806711, which uses a package named JAMA and Jamlab(to work with matrix) --> http://www.developer.com/java/other/article.php/762441
It is already recognizing the JAMA package (basic linear algebra package), after I added the Jama.jar file path to the CLASSPATH.
I was trying to import the Jamlab classes and I thought that I could do the same: add to the CLASSPATH the Jamlab.jar path.
The download did not come with a .JAR file, I did it using the JAR command: adding the classes to it. I already checked that the classes are actually inside the .JAR, not in a sub-folder.
The compiler is not recognizing a method which is found inside the Jamlab package:
//Create matrix of the coefficients.
polyCoeffMatrix = new Matrix(JElmat.convertTo2D(polynomialCoefficients));
"JElmat cannot be resolved" is the error message.
The import directive of my JSP page:
<%@page import="java.io.*,java.lang.*, java.util.*, java.awt.*, java.awt.image.*, Jama.*, Jama.util.*, jamlab.*, jamlab.JElmat.*"%>Any help is extremely appreciated!Yes they are in the same folder with 'package graphs;' in the 1st line,
i've tried with and without package.class to no avail
the exact errors i'm getting are
without the package in front
error: File .\CustomLabel.class does not contain type CustomLabel as expected, but type graphs.CustomLabel. Please remove the file or make sure it appears in the correct subdirectory of the class path
with the graphs.CustomLabel i get the following errors
error: Invalid class File formate: .\graphs\CustomLabel.class, wrong version: 46, expected 45
2nd error: Class graphs.CustomLabel not found in import. -
Importing classes/packages
Does importing an entire package cause the classloader to load ALL the classes in that package into memory or are they loaded only on demand?
Suppose package called MyPackage.
import MyPackage.* - Does this cause all the classes to be loaded into memory ?Here's some more info on the 'import' statement:
http://developer.java.sun.com/developer/TechTips/2000/tt0110.html#tip2 -
Hi All,
I need one help.
I have one java class under package com.abc and other java class under default package.
How do I access java class under default package from java class under com.abc package?.
Waiting for reply.
ThanksJust add default package in your CLASSPATH seting.
But it is recommened that all classes must belong to any package. You should avoid to use default package. -
Hi
I have a class (say Z) in a package (say X.Y) .
Z uses another class (say A) which doesn't have a package structure at all. I have been compiling Z as
"avac X/Y/Z.java".Can anyone suggest an other way of compiling this without creating a package strucuture for class A.
ThanksYep I'm doing the same in linux using a shell script.
My directory structure looks like this:
src/X/Y/Z --> X/Y is a package..Z is a class
src/X/Y/A ---->A is class from different directory bur copied here since Z uses A class.
My shell script contents look something like this
javac X/Y/*.java --> gives error ->
"cannot access X.Y.A
bad class file: ./X/Y/A.java
file does not contain class X.Y.A
Please remove or make sure it appears in the correct subdirectory of the classpath.
keys = A.Proxy(options);
^
1 error" -
About the class packaging problem
I used JBuilder 3 and 4 before and packaged some java classes together
but now when I want to use earlier version of the JBuilder like 2007, the import can't resolve some of the packages.
Any suggestions please.I think it doesn't know them.
Do I need to add a JAR to the project manually? Yes, when you add a JAR you are telling JBuilder where to look which in turn sets your classpath, without this it will never find it.
Do I need to do other operations before to add it?
Because when I choose "Add JARs", there is nothing
for me to add.Well I take it that it opens a File Chooser of some sort, you should then navigate to your JAR on drive.
Maybe you are looking for
-
Bitlocker requests recovery key every time
I have a T440s. The motherboard died and was replaced by Lenovo. I had Bitlocker drive encryption enabled. Now, ever time I reboot, I am required to enter the Bitlocker Recovery Key. I can't figure out how to fix this so I don't have to type it every
-
SharePoint 2013 SSRS in SharePoint Mode - Reports not loading controls.
Hello All, I have recently run across an issue that has stumped me and my DBA. We have just walked through installing SSRS 2012 w/SP1 in SharePoint (SharePoint 2013) mode according to these instructions here. Everything went just fine during the inst
-
I just setup my cable and internet at my new place yesterday thru comcast. The internet works when it is plugged directly from my modem to my iMac but when I try to plug the modem up to my time capsule to set up wireless and go through air port util
-
Is Airport Extreme for me?
*What I want:* I want to have a wireless harddrive. Basically a place that I (macbookpro) and my girlfriend (dell laptop) can both access wirelessly in order for us to store our music, movies, etc and be able to pull (or possbly stream?) from. *What
-
How to check that same Oracle software versions(including patch versions)
How to check that same Oracle software versions(including patch versions) is installed on two hosts(machines) ? We are using following process: On Host A : 1) Get the Oracle version using SQLPlus -v From this output, extract the version number. 2)Fin