Add a class into LinkedList
when i want to add object to linkedlist i use
LinkList.add(MyObject)
its succed but when i want to get it by use this fuction
public MyObject GetIt ( ) {
return this.removeFirst();
its give me uncompataple format;
how i can get this object after i insert it in linked ist by using function ;
Because the List doesn't know about your class (because it was written before you wrote MyObject) it instead manipulates Object references. Since everything is an Object (by inheritance) that's always valid when passing the reference in.
That is to say, a reference to a MyObject IS a reference to an Object. So...
list.add(myObject);...is always guaranteed to work. On the other hand, the reverse is not true. An Object IS NOT ALWAYS a MyObject. So when you get it out, it might not work.
You have to "cast" (tell the compiler that the particular Object that you're getting a reference to IS a MyObject) the reference thus...
return (MyObject)list.removeFirst();...which will now work in your code.
Caution - you don't understand the difference between Objects, references, types and classes (or you would not have asked this question). It is impossible to program in Java without learning this, so the sooner you do so the sooner you will be competent and comfortable. I recommend revising these distinctions in a good learner book on Java.
Dave.
Similar Messages
-
How to add my class into rt.jar file?
Hi, everyone!
I am using WinRAR to extract the package rt.jar and added
my class file to javax folder. Then I use jar c0vf to create
a package. After that, I restart my WSAD4.0.2. But it seems
that WSAD4.0.2 can not be started. (It stops at the welcome
screen for a long time.)
Anything wrong I have made? How to resolved the reouble?
Cheers,
George MaThanks!
Do you know how to add .class file to a project of WSAD4.0.2?
I use CLASSPATH, but always failed in IDE. But it works in
command line environment. I want to use some classes in a
.class file.
Can you help?
Cheers,
George -
Can't add my class into example project
my class is in the workspace the project
tree with the same package(in code first
line is "package xxxx;"). When I instatiat it, it is not red color, it always occure
compile error: idendifier xxxx not found in the class(other class in the same pakege) xxxx.
do I need redeploy the project? but it did not compile and build.Fred,
I am not sure about the details of the
problem you have explained below.
But here are some guidelines that may
help you figure out what you are doing wrong.
1. A Workspace can contain one or more
projects - (never any Java class files)
2. A Project can contain one or more
Java class files.
3. A project has a default "Source Root"
directory and this is used as the Root
for the source files.
4. Java requires public class names be the
same as the file name
(e.g. Class CellPhone must be saved in file
CellPhone.java)
5. Java requires the package name correspond
to directory path
(e.g. Pachage name of Acme.Video.Preview
must be stored in <Source Root>\Acme\Video\Preview )
6. The actual path to a file is the
Root Source plus the package name plus the
class name.java.
(example: Source Root = C:\JDeveloper
Package Name = MyCompany.Report.Util
Class Name = GeneratePDF
will need to be stored in:
C:\JDeveloper\MyCompany\Report\Util\GeneratePDF.java
As for various Identifiers not being found,
it is simply telling you that your project's
list of included libraries does not include
the given identifier.
If it is valid, then add the appropriate
library to the project's library list.
See Menu: Project | Project Properties.../ Add...
I hope this helps,
John@Oracle JDeveloper Team http://technet.oracle.com
null -
How can I split a class into 2 files?
I converted a C++ program to Java recently and it works fine, but I ran into a problem.
One file is very large and I need to add more functionality. Unlike with C++ where you can just put new functions in another file, I don't see a way to do it in Java.
I made another file, and therefore another class, but the compiler complains that it can't call a static function from non-static context. (I did not declare it static so I guess it's assuming it) But I understand why. So I made the new class "extend" the old one so "this" would exist but that doesn't work -- Is it because the new class is a subclass of the original class?
There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.JavaIsBetterThanCPP wrote:
There must be a way to do this. But I don't see what is likely obvious. HELP! And thanks.Unfortunately Java has no concept of "partial classes" like C# has. Generally, however, a class that is large enough to split up into separate files is either one class that should be modularized further into separate classes, or it already is modularized and all that code is the result of many inner classes. What some people do is promote those inner classes to top-level members in their own file, and mark them as package-private. Using a package you can basically have two classes that know everything about each other and have full access to each other.
But personally, and until I see justification otherwise, semantics in Java being unbreakingly tied to a certain file structure and naming is the most bonehead and, frankly, non-Java thing about Java.
There's probably a pre-processor out there that will let you split a class into multiple files and will combine them into a single source file just-in-time to pass to the compiler. -
How to add new class to existing DC (Web Dynpro project)
Hi,
How can I add new class to an existing DC (Web Dynpro project)?
I tried adding it using File - New - Other - Java - Class, but after a build of the DC the new class (and its contents ) was completely removed.
Then I created a new DC (java project) and created a new class in that DC. This went fine, but I got into problems because of circular referencing between the new & the old DC, so no build was possible.
This can't be difficult, does somebody knows how to do it?
My temporary solution is to add the classdefinition to an exisiting .java file. Very ugly.
Thanks,
JeroenHi Jeroen,
where did you create the class? If the *.java file is placed in the src/packages folder it should not be deleted by a build. (I suspect you created it in the gen_wdp folder?)
Regards,
Marc -
I need to add text vertically in a word document outside the margins. How can I do this with Microsoft.Office.Interop.Word and C#?
Leonard Swarczinski Software Developer Postal Center InternationalHi Leonard,
According to your description, do you want to add text vertically into Page Header/Footer? I wrote a sample for you.
using Microsoft.Office.Core;
using Microsoft.Office.Interop.Word;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AddTextToWord
class Program
static void Main(string[] args)
CreateNewDocument();
Console.ReadLine();
private static void CreateNewDocument()
Object oMissing = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Word.Application oWord;
Microsoft.Office.Interop.Word.Document oDoc;
oWord = new Microsoft.Office.Interop.Word.Application();
oWord.Visible = true;
oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
String HeaderText = "Hello everyone!";
WdParagraphAlignment wdAlign = WdParagraphAlignment.wdAlignParagraphCenter;
AddHeader1(oWord, HeaderText, wdAlign);
private static void AddHeader1(Application WordApp, string HeaderText, WdParagraphAlignment wdAlign)
Object oMissing = System.Reflection.Missing.Value;
WordApp.ActiveWindow.View.Type = WdViewType.wdOutlineView;
WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekPrimaryHeader;
Microsoft.Office.Interop.Word.Shape textBox = WordApp.ActiveDocument.Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationVertical, 150, 10, 40, 40);
textBox.TextFrame.TextRange.Text = HeaderText;
WordApp.ActiveWindow.View.SeekView = WdSeekView.wdSeekMainDocument;
If I misunderstood or anything wrong, please let me know and you can get more information from below articles.
Office development in Visual Studio
http://msdn.microsoft.com/en-us/office/hh133430.aspx
Abhout: AddTextbox Method
http://msdn.microsoft.com/en-us/library/office/aa171543(v=office.11).aspx
How to: Programmatically Insert Text into Word Documents
http://msdn.microsoft.com/en-us/library/vstudio/6b9478cs.aspx -
Add combo box into table pagination
I want to add combo box into JavaFX table with pagination. Something like that:
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Pagination;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.util.Callback;
public class MainApp extends Application
final ObservableList<Person> data = FXCollections.observableArrayList(
new Person("1", "Joe", "Pesci"),
new Person("2", "Audrey", "Hepburn"),
new Person("3", "Gregory", "Peck")
private Pagination pagination;
public static void main(String[] args) throws Exception
launch(args);
public int itemsPerPage()
return 1;
public int rowsPerPage()
return 5;
public VBox createPage(int pageIndex)
int lastIndex = 0;
int displace = data.size() % rowsPerPage();
if (displace > 0)
lastIndex = data.size() / rowsPerPage();
else
lastIndex = data.size() / rowsPerPage() - 1;
VBox box = new VBox(5);
int page = pageIndex * itemsPerPage();
for (int i = page; i < page + itemsPerPage(); i++)
TableView<Person> table = new TableView<>();
TableColumn numCol = new TableColumn("ID");
numCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("num"));
numCol.setMinWidth(20);
TableColumn firstNameCol = new TableColumn("First Name");
firstNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("firstName"));
firstNameCol.setMinWidth(160);
TableColumn lastNameCol = new TableColumn("Last Name");
lastNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("lastName"));
lastNameCol.setMinWidth(160);
table.getColumns().addAll(numCol, firstNameCol, lastNameCol);
if (lastIndex == pageIndex)
table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + displace)));
else
table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + rowsPerPage())));
box.getChildren().add(table);
return box;
@Override
public void start(final Stage stage) throws Exception
pagination = new Pagination((data.size() / rowsPerPage() + 1), 0);
// pagination = new Pagination(20 , 0);
//pagination.setStyle("-fx-border-color:red;");
pagination.setPageFactory(new Callback<Integer, Node>()
@Override
public Node call(Integer pageIndex)
if (pageIndex > data.size() / rowsPerPage() + 1)
return null;
else
return createPage(pageIndex);
public static class Person
private final SimpleStringProperty num;
private final SimpleStringProperty firstName;
private final SimpleStringProperty lastName;
private Person(String id, String fName, String lName)
this.firstName = new SimpleStringProperty(fName);
this.lastName = new SimpleStringProperty(lName);
this.num = new SimpleStringProperty(id);
public String getFirstName()
return firstName.get();
public void setFirstName(String fName)
firstName.set(fName);
public String getLastName()
return lastName.get();
public void setLastName(String fName)
lastName.set(fName);
public String getNum()
return num.get();
public void setNum(String id)
num.set(id);
I suppose that this can be done with StackPane but I need some other more universal way to do this because I want to expand the table size. I need to place there the combo box always in a fix position.
Ref http://stackoverflow.com/questions/21147261/add-combo-box-into-table-paginationHi. You can do it using an AnchorPane:
AnchorPane.setBottomAnchor(comboBox, 40.0);
AnchorPane.setLeftAnchor(comboBox, 12.0);
The complete example :
import java.util.List;
import javafx.application.Application;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ListChangeListener;
import javafx.collections.ListChangeListener.Change;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.scene.control.Pagination;
import javafx.scene.Node;
import javafx.scene.control.ComboBox;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextArea;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.util.Callback;
public class TablePager extends Application {
final ObservableList<Person> data = FXCollections.observableArrayList(
new Person("1", "Joe", "Pesci"),
new Person("2", "Audrey", "Hepburn"),
new Person("3", "Gregory", "Peck"),
new Person("4", "Cary", "Grant"),
new Person("5", "De", "Niro"),
new Person("6", "Katharine", "Hepburn"),
new Person("7", "Jack", "Nicholson"),
new Person("8", "Morgan", "Freeman"),
new Person("9", "Elizabeth", "Taylor"),
new Person("10", "Marcello", "Mastroianni"),
new Person("11", "Innokenty", "Smoktunovsky"),
new Person("12", "Sophia", "Loren"),
new Person("13", "Alexander", "Kalyagin"),
new Person("14", "Peter", "OToole"),
new Person("15", "Gene", "Wilder"),
new Person("16", "Evgeny", "Evstegneev"),
new Person("17", "Michael", "Caine"),
new Person("18", "Jean-Paul", "Belmondo"),
new Person("19", " Julia", "Roberts"),
new Person("20", "James", "Stewart"),
new Person("21", "Sandra", "Bullock"),
new Person("22", "Paul", "Newman"),
new Person("23", "Oleg", "Tabakov"),
new Person("24", "Mary", "Steenburgen"),
new Person("25", "Jackie", "Chan"),
new Person("26", "Rodney", "Dangerfield"),
new Person("27", "Betty", "White"),
new Person("28", "Eddie", "Murphy"),
new Person("29", "Amitabh", "Bachchan"),
new Person("30", "Nicole", "Kidman"),
new Person("31", "Adriano", "Celentano"),
new Person("32", "Rhonda", " Fleming's"),
new Person("32", "Humphrey", "Bogart"));
private Pagination pagination;
public static void main(String[] args) throws Exception {
launch(args);
public int itemsPerPage() {
return 1;
public int rowsPerPage() {
return 5;
public VBox createPage(int pageIndex) {
int lastIndex = 0;
int displace = data.size() % rowsPerPage();
if (displace > 0) {
lastIndex = data.size() / rowsPerPage();
} else {
lastIndex = data.size() / rowsPerPage() - 1;
VBox box = new VBox();
int page = pageIndex * itemsPerPage();
for (int i = page; i < page + itemsPerPage(); i++) {
TableView<Person> table = new TableView<Person>();
TableColumn numCol = new TableColumn("ID");
numCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("num"));
numCol.setMinWidth(20);
TableColumn firstNameCol = new TableColumn("First Name");
firstNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("firstName"));
firstNameCol.setMinWidth(160);
TableColumn lastNameCol = new TableColumn("Last Name");
lastNameCol.setCellValueFactory(
new PropertyValueFactory<Person, String>("lastName"));
lastNameCol.setMinWidth(160);
table.getColumns().addAll(numCol, firstNameCol, lastNameCol);
if (lastIndex == pageIndex) {
table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + displace)));
} else {
table.setItems(FXCollections.observableArrayList(data.subList(pageIndex * rowsPerPage(), pageIndex * rowsPerPage() + rowsPerPage())));
box.getChildren().addAll(table);
return box;
@Override
public void start(final Stage stage) throws Exception {
ObservableList<String> options =
FXCollections.observableArrayList(
"Opt1",
"Opt2",
"Opt3");
final ComboBox comboBox = new ComboBox(options);
pagination = new Pagination((data.size() / rowsPerPage() + 1), 0);
// pagination = new Pagination(20 , 0);
pagination.setStyle("-fx-border-color:red;");
pagination.setPageFactory(new Callback<Integer, Node>() {
@Override
public Node call(Integer pageIndex) {
if (pageIndex > data.size() / rowsPerPage() + 1) {
return null;
} else {
return createPage(pageIndex);
AnchorPane anchor = new AnchorPane();
AnchorPane.setTopAnchor(pagination, 10.0);
AnchorPane.setRightAnchor(pagination, 10.0);
AnchorPane.setBottomAnchor(pagination, 10.0);
AnchorPane.setLeftAnchor(pagination, 10.0);
Scene scene = new Scene(anchor, 400, 250);
AnchorPane.setBottomAnchor(comboBox, 40.0);
AnchorPane.setLeftAnchor(comboBox, 12.0);
anchor.getChildren().addAll(pagination, comboBox);
stage.setScene(scene);
stage.setTitle("Table pager");
stage.show();
public static class Person {
private final SimpleStringProperty num;
private final SimpleStringProperty firstName;
private final SimpleStringProperty lastName;
private Person(String id, String fName, String lName) {
this.firstName = new SimpleStringProperty(fName);
this.lastName = new SimpleStringProperty(lName);
this.num = new SimpleStringProperty(id);
public String getFirstName() {
return firstName.get();
public void setFirstName(String fName) {
firstName.set(fName);
public String getLastName() {
return lastName.get();
public void setLastName(String fName) {
lastName.set(fName);
public String getNum() {
return num.get();
public void setNum(String id) {
num.set(id); -
Class into an XML file into a DataSet vs. Reflection into a DataTable
In order to serialize a class (SystemSetup) and load an XML file into a datatable and then a dataset I must:
1. Create an .XSD file using the XSD SDK tool.
2. DataTable.LoadSchemaFile
3. DataTable.LoadXml
4. Then add the datatable to a dataset.
Is this correct?
Another method using Reflection.
Reflect the SystemSetup class into a datatable.
Push the datatable->dataset to the crystal report.
Will this work?
Which one is preferable? Thx.,
AjayOK, i figured this much out:
Dim ds As New DataSet
Dim myXmlReader As New System.Xml.XmlTextReader("C:\SystemSetup.xml")
ds.ReadXml(myXmlReader, XmlReadMode.InferTypedSchema)
mydatatable = ds.Tables(0) -
How can I add jar files into the namespace in code?
My friends:
I need to add jar files into my namespace dynamicly in my code.But the jar files might be repeated, I am not sure.so, i wonder how can I add them into my namespace, ignoring the repeated files?
This is my code:
URL[] urlArrayA = new URL[5];
urlArray[0] = sample1;
urlArray[1] = sample2;
URL[] urlArrayB = new URL[5];
urlArrayB[0] = sample3;
urlArrayB[1] = sample4;
URLClassLoader urlClassLoaderA = URLClassLoader.newInstance(urlArrayA);
URLClassLoader urlClassLoaderB = URLClassLoader.newInstance(urlArrayB);
how can i visit classes in urlClassLoaderA from classes in urlClassLoaderB?could anyone please answer the question for me ? thank you...
-
Add .txt files into .zip file
Hello friends,
Any buddy knows how to add ".txt" files into ".zip" format through the ABAP code.
Thanks in advance.Hi Murali,
You can use the method in the class CL_ABAP_GZIP to zip your file and then download it using GUI_DOWNLOAD.
data: zip type ref to cl_abap_zip,
result type xstring.
create object zip.
zip->add( name = some_file content = content ).
result = zip->save( ).
Also you can check this thread as well.
How to Download data in Zip folder
Re: UNZIP file from ABAP
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
Ignore some fields while saving a Java class into XML
Hi!
I've seen in this forum that there is an easy way of saving Java classes to XML files using Castor. I want to save some Java classes into XML, but not all the fields of the class. For example, I want to ignore all lists. Is there any easy way to do something like this:
class Java2XML{
public static void makeXML(Object object)
for all fields in object
if field extends List, ignore
else, include field in XML
}Thanks in advance!You can add a managed bean by:
- manually adding a definition in the faces config source tab.
- creating a bean in the overview tab of the faces-config editor.
So yes, you can edit the faces-config manually.
I hope this answer your question,
Regards,
Koen Verhulst -
How to organize j2me classes into packages?
Hello!
I'm using Wireless Toolkit 2.5.2 and I have got a question about it.
Does anybody know, how to organize j2me classes into packages?
As far as I know, all source files should be placed inside WTK_home_directory\apps\my_project\src folder.
Although it is possible to create arbitrary folder structure (for example, src\com\my_company\www\my_package) and successfully compile the project,
it's not possible to run it on the emulator or any target device. Trying to do it, I get ClassNotFound exception.
It's not surprisingly, because virtual machine on the device doesn't know, where to look for desired classes.
So the question is how to add new entries to the device classpath (of course, if it exists)?
And is it possible to configure it through application descriptor (jad) file somehow?
Any ideas, references, descriptions?
Thanks in advance,
A.Hello!
So, I have found the solution and this question is not actual any more.
The solution is quite simple - you have to properly configure application jad-file.
It can be done like this (in ktoolbar):
1. Open project settings from main menu (Project - Settings).
2. Then go to MIDlets tab.
3. There you have to change value in "*class*" column (for example, to smth like this - com.my_company.www.my_package.my_midlet_class_name).
4. Press Ok button.
Having done these steps, you will be able to have any package structure you need
(because after it AMS on the device will know where to look for your application class files).
A. -
Combining classes into one single class
Hi
I have written a java application that incompasses many classes. When I complie my java code
the complier produced a ClassName.class file for the main class and each and every class.
When I run the application it needs all of the classes not just the main class.
Can someone please show me how to combine all the classes into a single Main class
as when I try and run the program :
i.e java Main.class it needs all the other classes too.
Basically what I am asking is can I compile my program such that all class information
is incorporated in the Main.class?
ThanksNot really (and it wouldn't be a good idea if you could). You can define one class inside another, but they still produce separate .class files. What you do is to wrap all your class files up in a jar file usint the jar utility. You can add a "manifest" which specifies which is the main class. If you do that you can run the program simply with java -jar xxxx.jar
-
How to add a directory into a jar file
Hi, guys, I want to add a package into a jar file. For example, my dirctory structrue
is org/test/, all files locate in the directory test, in org.test package. I want to
add the package into a jar file, test.jar. I use "java -cvf test.jar -C org/test/ .
But it says "jar: no match". How can I solve it.
thanksInstead of 'java', use 'jar'.
All in all, try this: jar cvf test.jar -C org/test/*.class.
Have a nice day! -
How to add the fields into combo ?
Hi,
I want to add the table fields into combo box. Now I am able to getting the columns from table but I don�t know how to add that columns in combo box.
My jsp getting the columns from table.
function metadata(){
try {
Connection con = null;
Class.forName("oracle.jdbc.driver.OracleDriver") ;
con = DriverManager.getConnection("jdbc:oracle:thin:@10.60.4.25:1521:clopaydb","scott","tiger");
String query = "SELECT * FROM emp";
DatabaseMetaData dma = con.getMetaData ();
Statement stmt = con.createStatement ();
ResultSet rs = stmt.executeQuery (query);
ResultSetMetaData rsmd = rs.getMetaData ();
int i;
int numCols = rsmd.getColumnCount ();
for (i=1; i<=numCols; i++) {
if (i > 1) System.out.print(",");
System.out.print("\nThe Table Column list "+rsmd.getColumnLabel(i));
rs.close();
stmt.close();
con.close();
catch (Exception ex) {
ex.printStackTrace ();
}Please give me a sample code for add these items into combo. (I need JSP sample code )
Thanks & Regards,
Merlin Roshinafunction metadata(){
try {??
Are you sure on this ? Dont mix javascript function with a java method.
Make a java bean and your method may return an ArrayList.
In your JSP ..
<select name="yourComboBox">
<%
// Make a For Loop for the arraylist
String columnLabel = (String ) arrayList.get(i);
<option value="<%=columnLabel%>"><%=columnLabel%></option>
<%
} // end bracing of for loop
%>
</select>
Post your code based on the directions above then we can help you more on this if reqd.
Probably you should look up into sample JSP ..JDBC sample codes on google.
-Rohit
Maybe you are looking for
-
Different iTunes libraries in different accounts on same Mac
Should iTunes be separately D/L'ed and installed on each account? Do you need different authorizations? Can you Home Share from one library to another on the same machine? What other issues/problems am I not thinking about in this scenario? Thanks fo
-
Entity bean with another class as primary key generator class
Hi All, I have a CMP entity bean in which I generate the primary key using my own class know as unique id generator. I use it in ejbCreate method in the following manner public Long ejbCreate(HospitalData hospitalData) throws CreateException{
-
IPod Touch Updating to OS 3.1 & Windows Connection Issues Possible Solution
Hi everyone, I may have found a solution to "there was a problem downloading ..." error message. I had recently setup some content filtering on my router, and after disabling it, my iPod Touch 2nd gen is finally updating to OS 3.1.1. Please note that
-
Best way to change info on iphone
I am taking over my mom's iphone. What is the best way to erase the apple account and set up with mine? I have logged in with mine but her account keep pop out and ask me for password. Pls help me and thx.
-
Post_install and PKGBUILDS[solved]
OK as a maintainer of a package I have a soft dependency of gpac. Now its been requested that I use post_install() {} My question is how? Would I just add it after my build section build() { cd $startdir/src/$pkgname-$pkgver sed -i -e "s|/usr|$startd